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 listApr 26, 2026 05:52limanjun99limanjun99Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 26, 2026 05:520382,110,949289,220,00073,055,0002,404,352expected "1024907 ", got "1024907back:174205644,front:1082692788,"
2Apr 26, 2026 05:520377,026,540270,777,00084,930,0002,334,720expected "1023255 ", got "1023255back:174692048,front:1058767960,"
3Apr 26, 2026 05:520380,057,867293,781,00067,949,0002,310,144expected "1020307 ", got "1020307back:174688268,front:1080283520,"