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 27, 2026 16:48Victor MerckléVictor MerckléError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 27, 2026 16:4906,563,695,1146,507,987,00034,978,0002,330,624expected "1021855 ", got "1025141 "stderr
2Apr 27, 2026 16:4906,615,934,9226,561,109,00035,978,0002,326,528expected "1018997 ", got "1025141 "stderr
3Apr 27, 2026 16:4906,626,590,7326,571,757,00032,973,0002,437,120expected "1023867 ", got "1025141 "stderr