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:43anboto1anboto1Error
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:440965,504,510946,586,0009,449,0002,113,536expected "1018525 ", got "1018524 "
2Jun 8, 2026 06:440971,073,819952,552,0009,217,0002,113,536expected "1024030 ", got "1024029 "
3Jun 8, 2026 06:440965,796,548946,604,0009,461,0002,113,536expected "1019024 ", got "1019023 "
4Jun 8, 2026 06:440974,370,666955,820,0009,213,0002,113,536expected "1026186 ", got "1026184 "
5Jun 8, 2026 06:4428,987966,045,062947,464,0009,131,0002,113,536
6Jun 8, 2026 06:4429,190972,627,864954,047,0009,237,0002,113,536
7Jun 8, 2026 06:4429,303976,325,134957,729,0009,279,0002,113,536
8Jun 8, 2026 06:4429,360978,425,695959,360,0009,552,0002,113,536
9Jun 8, 2026 06:4429,846999,671,881975,276,0009,660,0002,113,536