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 listJun 8, 2026 06:50anboto1anboto1Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 8, 2026 06:510191,276,679171,870,00010,161,0002,117,632expected "1025914 ", got "1025912 "
2Jun 8, 2026 06:515,516191,644,776172,287,0009,748,0002,117,632
3Jun 8, 2026 06:515,516191,269,502171,772,00010,265,0002,117,632
4Jun 8, 2026 06:515,529191,688,614172,297,00010,161,0002,117,632
5Jun 8, 2026 06:515,540192,478,092173,164,0009,679,0002,117,632
6Jun 8, 2026 06:515,549192,358,012172,865,00010,275,0002,117,632
7Jun 8, 2026 06:515,566193,348,736173,743,0009,959,0002,117,632
8Jun 8, 2026 06:515,593194,377,502174,744,0009,835,0002,117,632
9Jun 8, 2026 06:515,601194,543,302174,981,0009,864,0002,117,632