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 listSep 3, 2023 04:10matsuoka-601matsuoka-601Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 3, 2023 04:1000000Error: expected "1022167 ", got "1022165 "stderr
2Sep 3, 2023 04:1100000Error: expected "1024257 ", got "1024256 "stderr
3Sep 3, 2023 04:1500000Error: expected "1020149 ", got "1020140 "stderr
4Sep 3, 2023 04:1900000Error: expected "1024102 ", got "1024097 "stderr
5Sep 3, 2023 04:2500000Error: expected "1020063 ", got "1020062 "stderr
6Sep 3, 2023 04:2700000Error: expected "1022038 ", got "1022041 "stderr
7Sep 3, 2023 04:2800000Error: expected "1023876 ", got "1023870 "stderr
8Sep 3, 2023 04:2800000Error: expected "1021238 ", got "1021235 "stderr
9Sep 3, 2023 04:2900000Error: expected "1022583 ", got "1022573 "stderr
10Sep 3, 2023 04:3000000Error: expected "1025965 ", got "1025958 "stderr
11Sep 3, 2023 04:3100000Error: expected "1023078 ", got "1023084 "stderr
12Sep 3, 2023 04:3300000Error: expected "1022470 ", got "1022474 "stderr
13Sep 3, 2023 04:3400000Error: expected "1019833 ", got "1019832 "stderr