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 17:00Victor 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 17:0106,559,104,4686,496,979,00040,974,0002,330,624expected "1021870 ", got "1025141 "stderr
2Apr 27, 2026 17:0106,569,823,2576,513,966,00036,977,0002,437,120expected "1023746 ", got "1025141 "stderr
3Apr 27, 2026 17:0106,578,513,9106,512,511,00042,970,0002,375,680expected "1017914 ", got "1025141 "stderr