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 14:16limanjun99limanjun99Error
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 14:170230,642,783199,187,00014,013,0002,527,232expected "1020971 ", got "1020970"
2Apr 27, 2026 14:176,428230,861,050199,138,00013,009,0002,535,424
3Apr 27, 2026 14:176,429226,872,562197,147,00015,011,0002,347,008
4Apr 27, 2026 14:176,430233,765,801198,203,00014,014,0002,347,008
5Apr 27, 2026 14:176,454229,367,682197,997,00014,999,0002,523,136
6Apr 27, 2026 14:176,460233,592,471197,186,00016,015,0002,527,232
7Apr 27, 2026 14:176,468232,044,323197,502,00015,959,0002,523,136
8Apr 27, 2026 14:176,475232,760,992199,699,00013,978,0002,523,136
9Apr 27, 2026 14:176,515232,334,893200,023,00015,001,0002,531,328