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:34Victor 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:3506,556,131,3986,496,322,00032,981,0002,330,624expected "1024235 ", got "1496 "stderr
2Apr 27, 2026 16:3506,576,143,3516,517,577,00036,974,0002,441,216expected "1020443 ", got "1240 "stderr
3Apr 27, 2026 16:3506,586,943,1786,519,359,00040,977,0002,437,120expected "1025215 ", got "1143 "stderr