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:00anboto1anboto1Error
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:010186,907,022167,553,0009,667,0002,117,632expected "1020447 ", got "1020446 "
2Jun 8, 2026 06:010186,613,336167,732,0009,664,0002,117,632expected "1021650 ", got "1021649 "
3Jun 8, 2026 06:010187,103,023167,707,0009,772,0002,117,632expected "1018156 ", got "1018154 "
4Jun 8, 2026 06:010187,759,170168,208,00010,335,0002,117,632expected "1023328 ", got "1023327 "
5Jun 8, 2026 06:015,360186,110,217166,851,00010,037,0002,117,632
6Jun 8, 2026 06:015,396188,846,074167,842,00010,248,0002,117,632
7Jun 8, 2026 06:015,398187,447,603168,741,0009,419,0002,117,632
8Jun 8, 2026 06:015,416187,902,368168,894,0009,844,0002,117,632
9Jun 8, 2026 06:015,418188,528,441168,943,0009,854,0002,117,632