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 28, 2026 15:20Victor MerckléVictor MerckléError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 28, 2026 15:210118,170,479109,257,0001,172,0002,113,536expected "1020621 ", got "1020620 "
2Jun 28, 2026 15:213,315117,182,627108,315,0001,092,0002,113,536
3Jun 28, 2026 15:213,319117,326,625108,416,0001,121,0002,113,536
4Jun 28, 2026 15:213,325117,579,985108,617,0001,108,0002,113,536
5Jun 28, 2026 15:213,327117,867,830108,710,0001,098,0002,113,536
6Jun 28, 2026 15:213,330117,667,788108,722,0001,171,0002,113,536
7Jun 28, 2026 15:213,330117,882,070108,823,0001,078,0002,113,536
8Jun 28, 2026 15:213,339117,902,499109,054,0001,164,0002,113,536
9Jun 28, 2026 15:213,348118,650,890109,320,0001,195,0002,113,536