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:16Victor 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:1605,744,835,6195,705,132,00017,987,0002,330,624expected "1018753 ", got "1022000 "stderr
2Apr 27, 2026 16:1605,750,442,7665,712,278,00018,990,0002,531,328expected "1020373 ", got "1022000 "stderr
3Apr 27, 2026 16:1605,768,867,5205,731,003,00013,990,0002,473,984expected "1019795 ", got "1022000 "stderr