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:11Victor 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:1103,325,120,5163,299,840,0004,996,0002,387,968expected "1022423 ", got "1000000 "stderr
2Apr 27, 2026 16:1103,325,974,1263,303,715,0001,999,0002,326,528expected "1022091 ", got "1000000 "stderr
3Apr 27, 2026 16:1103,332,009,8733,304,072,0001,998,0002,387,968expected "1020248 ", got "1000000 "stderr