Unique strings Sergey Svistunov

Count the exact number of unique tokens as fast as possible.

Input

One token per line on STDIN:

JWXcKKaWzvFL5
Rof
3ztCpA
5wHcGN
*UiEMthaTS*g

Output

Print the exact count of unique tokens to STDOUT.

Constraints

  • Character set: 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ@#%*
  • Maximum token length: 16
  • Approximately 1,000,000 unique tokens
Back to listJun 8, 2021 21:02Yuriy LyfenkoYuriy LyfenkoError
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 8, 2021 21:1100000Error: expected "1039819 ", got "1039818 "
2Jun 8, 2021 21:1100000Error: expected "1037562 ", got "1037561 "
3Jun 8, 2021 21:1100000Error: expected "1040183 ", got "1040182 "
4Jun 8, 2021 21:1100000Error: expected "1038145 ", got "1038144 "
5Jun 8, 2021 21:117,593321,593,191250,568,64202,277,376
6Jun 8, 2021 21:117,596311,111,917250,667,12102,277,376
7Jun 8, 2021 21:117,602326,427,560250,854,37902,273,280
8Jun 8, 2021 21:1014,024526,095,521462,775,99002,256,896
9Jun 8, 2021 21:1014,029543,850,177462,944,34002,248,704
10Jun 8, 2021 21:0814,089533,381,172464,937,90802,207,744
11Jun 8, 2021 21:1014,118535,011,834465,881,65702,252,800
12Jun 8, 2021 21:0914,157537,907,972467,166,95602,240,512
13Jun 8, 2021 21:0814,166535,365,178467,480,70302,248,704
14Jun 8, 2021 21:0214,246536,924,902470,102,32702,248,704
15Jun 8, 2021 21:0814,260545,439,293470,570,98502,252,800
16Jun 8, 2021 21:1014,306535,477,686472,097,15402,252,800
17Jun 8, 2021 21:1014,343536,159,386473,334,50502,248,704
18Jun 8, 2021 21:0214,372522,826,502474,271,99302,236,416
19Jun 8, 2021 21:1014,374529,787,029474,326,83702,248,704
20Jun 8, 2021 21:0914,380531,544,183474,548,80902,244,608
21Jun 8, 2021 21:0914,382529,666,213474,612,30302,256,896
22Jun 8, 2021 21:0214,559543,514,523480,461,10202,252,800
23Jun 8, 2021 21:0714,569547,876,889480,782,61302,220,032
24Jun 8, 2021 21:0714,632546,685,908482,871,29302,211,840
25Jun 8, 2021 21:0714,641556,270,572483,167,17102,224,128
26Jun 8, 2021 21:0915,120560,832,045498,943,91802,240,512
27Jun 8, 2021 21:0915,142567,902,803499,687,00802,252,800
28Jun 8, 2021 21:0915,193551,404,408501,360,38602,248,704