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 10:34anboto1anboto1Error
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 10:350191,369,848173,265,0008,258,0002,117,632expected "1025638 ", got "1025637 "
2Jun 8, 2026 10:355,487190,392,436171,855,0009,224,0002,117,632
3Jun 8, 2026 10:355,505190,950,588172,423,0009,274,0002,117,632
4Jun 8, 2026 10:355,515191,704,572172,763,0009,258,0002,117,632
5Jun 8, 2026 10:355,521191,404,962172,961,0009,236,0002,117,632
6Jun 8, 2026 10:355,527191,680,040173,140,0009,282,0002,117,632
7Jun 8, 2026 10:355,559192,777,618174,259,0009,218,0002,117,632
8Jun 8, 2026 10:355,573193,120,429174,532,0009,397,0002,117,632
9Jun 8, 2026 10:355,573193,641,875174,594,0009,326,0002,117,632