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 listOct 2, 2024 17:33Joad NacerJoad NacerError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 2, 2024 17:5400000Error: expected "1024443 ", got "1024732 "stderr
2Oct 2, 2024 17:314,734180,914,139142,199,00014,019,0002,465,792
3Oct 2, 2024 17:464,753178,361,170144,854,00011,987,0002,461,696
4Oct 2, 2024 17:334,767186,837,005144,296,00013,026,0002,334,720
5Oct 2, 2024 17:474,778184,353,463141,706,00015,966,0002,334,720
6Oct 2, 2024 17:314,796189,692,774141,226,00017,027,0002,461,696
7Oct 2, 2024 17:334,802181,639,990144,521,00013,953,0002,342,912
8Oct 2, 2024 17:474,817184,893,410143,962,00014,996,0002,334,720
9Oct 2, 2024 17:314,822184,220,487146,114,00013,010,0002,342,912
10Oct 2, 2024 17:334,826188,625,542146,242,00013,021,0002,342,912
11Oct 2, 2024 17:454,834187,666,767142,578,00016,949,0002,465,792
12Oct 2, 2024 17:314,838183,511,658145,684,00013,969,0002,334,720
13Oct 2, 2024 17:334,843183,064,508142,836,00016,980,0002,342,912
14Oct 2, 2024 17:334,870182,432,976149,742,00010,981,0002,342,912
15Oct 2, 2024 17:314,876182,203,400146,911,00013,991,0002,330,624
16Oct 2, 2024 17:474,883186,914,762146,133,00015,013,0002,330,624
17Oct 2, 2024 17:464,891200,766,658145,368,00016,040,0002,469,888
18Oct 3, 2024 11:154,896184,710,787149,596,00011,967,0002,461,696
19Oct 2, 2024 17:474,901183,366,274149,743,00011,979,0002,342,912
20Oct 2, 2024 17:314,904186,937,283143,839,00017,979,0002,334,720
21Oct 2, 2024 17:314,917196,618,522149,231,00013,020,0002,334,720
22Oct 2, 2024 17:454,923193,089,775147,512,00014,950,0002,334,720
23Oct 2, 2024 17:474,925188,049,120142,570,00019,939,0002,293,760
24Oct 2, 2024 17:334,925188,766,232148,561,00013,958,0002,469,888
25Oct 2, 2024 17:474,925187,142,539149,578,00012,963,0002,461,696
26Oct 2, 2024 17:474,928183,150,187148,667,00013,968,0002,334,720
27Oct 2, 2024 17:334,929189,686,859146,702,00015,967,0002,465,792
28Oct 2, 2024 17:334,964187,585,217150,833,00012,985,0002,465,792
29Oct 2, 2024 17:334,972188,068,018149,075,00015,007,0002,457,600
30Oct 2, 2024 17:454,975193,923,575151,156,00013,013,0002,461,696
31Oct 2, 2024 17:334,984188,590,845150,522,00013,955,0002,465,792
32Oct 2, 2024 17:474,986186,367,555151,588,00012,964,0002,461,696
33Oct 2, 2024 17:314,989189,607,363149,674,00014,967,0002,461,696
34Oct 2, 2024 17:335,002188,055,243154,059,00011,004,0002,334,720
35Oct 2, 2024 17:335,004188,344,409150,106,00015,010,0002,469,888
36Oct 2, 2024 17:335,016196,961,982150,559,00014,956,0002,334,720
37Oct 3, 2024 11:155,037194,801,780151,202,00015,020,0002,334,720
38Oct 2, 2024 17:335,184194,469,292159,061,00012,004,0002,465,792
39Oct 2, 2024 17:475,209197,340,169159,912,00011,993,0002,334,720
40Oct 2, 2024 17:335,225202,179,278159,475,00012,957,0002,342,912
41Oct 3, 2024 11:155,270200,263,279161,923,00011,994,0002,465,792
42Oct 2, 2024 17:315,308197,936,726158,136,00017,014,0002,461,696
43Oct 2, 2024 17:465,992220,548,528186,764,00010,986,0002,457,600