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 26, 2026 07:54limanjun99limanjun99Error
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 26, 2026 07:540279,409,477244,405,00015,024,0002,519,040expected "1024318 ", got "1024318back:292790880,front:585504312,"
2Apr 26, 2026 07:540277,673,512244,248,00015,015,0002,519,040expected "1022330 ", got "1022330back:291575420,front:585952220,"
3Apr 26, 2026 07:540278,738,583245,294,00014,016,0002,523,136expected "1019979 ", got "1019979back:291258928,front:586871164,"