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 listJul 24, 2024 19:45Andrey LikhachevAndrey LikhachevError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 24, 2024 19:4600000Error: expected "1020070 ", got "1020071 "stderr
2Jul 24, 2024 19:4600000Error: expected "1021932 ", got "1021933 "stderr
3Jul 24, 2024 19:4700000Error: expected "1018881 ", got "1018882 "stderr
4Jul 24, 2024 19:5400000Error: expected "1020957 ", got "1020958 "stderr
5Jul 24, 2024 19:5500000Error: expected "1024806 ", got "1024807 "stderr
6Jul 24, 2024 20:1900000Error: expected "1019439 ", got "1019440 "stderr
7Jul 24, 2024 19:4734,4791,211,947,6231,137,799,48502,256,896
8Jul 24, 2024 19:4534,5021,199,827,1901,138,566,50602,260,992
9Jul 24, 2024 19:4734,5451,214,491,2341,139,987,07302,383,872
10Jul 24, 2024 19:4534,5751,199,640,2661,140,966,26902,383,872
11Jul 24, 2024 19:4534,5971,201,171,1531,141,712,92202,260,992
12Jul 24, 2024 19:4735,5031,237,889,8121,171,588,31202,392,064