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:39Joad 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:3900000Error: expected "1021790 ", got "1021795 "stderr
2Oct 2, 2024 17:3900000Error: expected "1022945 ", got "1023243 "stderr
3Oct 2, 2024 17:3700000Error: expected "1023490 ", got "1023806 "stderr
4Oct 2, 2024 17:3700000Error: expected "1019906 ", got "1019962 "stderr
5Oct 2, 2024 17:3400000Error: expected "1019530 ", got "1019702 "stderr
6Oct 2, 2024 17:394,757183,755,892146,974,0009,998,0002,465,792
7Oct 2, 2024 17:374,793178,991,068143,164,00015,017,0002,342,912
8Oct 2, 2024 17:394,842186,807,945145,804,00013,981,0002,453,504
9Oct 2, 2024 17:364,866191,213,105149,613,00010,971,0002,465,792
10Oct 2, 2024 17:394,869182,931,850147,691,00012,972,0002,342,912
11Oct 2, 2024 17:394,884188,580,179149,163,00012,013,0002,383,872
12Oct 2, 2024 17:394,911182,989,441150,066,00012,005,0002,342,912
13Oct 2, 2024 17:394,914192,751,476149,150,00013,013,0002,347,008
14Oct 2, 2024 17:364,915185,305,135150,186,00012,014,0002,334,720
15Oct 2, 2024 17:374,923185,368,096149,503,00012,956,0002,461,696
16Oct 2, 2024 17:394,924190,825,507147,535,00014,952,0002,469,888
17Oct 2, 2024 17:394,935183,825,049151,864,00010,990,0002,342,912
18Oct 2, 2024 17:394,953190,734,052145,501,00017,938,0002,469,888
19Oct 2, 2024 17:394,955186,973,201150,552,00012,961,0002,371,584
20Oct 2, 2024 17:394,955192,142,982148,556,00014,955,0002,461,696
21Oct 2, 2024 17:394,995187,303,934146,856,00017,982,0002,469,888
22Oct 2, 2024 17:395,024193,679,537151,820,00013,983,0002,334,720
23Oct 2, 2024 17:395,092196,021,125153,026,00015,002,0002,293,760
24Oct 2, 2024 17:395,205195,109,865158,775,00012,981,0002,334,720
25Oct 2, 2024 17:375,226197,721,588155,510,00016,946,0002,461,696
26Oct 2, 2024 17:365,230203,613,269155,630,00016,959,0002,469,888