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:52Victor 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:5306,548,847,4526,486,379,00037,978,0002,326,528expected "1020589 ", got "1025141 "stderr
2Apr 27, 2026 16:5306,567,099,4636,503,100,00037,977,0002,428,928expected "1022204 ", got "1025141 "stderr
3Apr 27, 2026 16:5306,588,712,9156,523,475,00038,972,0002,330,624expected "1021831 ", got "1025141 "stderr