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 27, 2026 17:11Victor 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 27, 2026 17:110183,853,088139,280,00036,881,0002,113,536expected "1025925 ", got "1025924 "
2Jun 27, 2026 17:115,328183,806,212140,110,00035,717,0002,113,536
3Jun 27, 2026 17:115,333183,994,903139,110,00036,900,0002,113,536
4Jun 27, 2026 17:115,334184,099,916139,119,00036,919,0002,113,536
5Jun 27, 2026 17:115,334183,847,334139,234,00036,814,0002,113,536
6Jun 27, 2026 17:115,338184,288,751139,294,00036,867,0002,113,536
7Jun 27, 2026 17:115,344184,693,044139,494,00036,876,0002,113,536
8Jun 27, 2026 17:115,349184,719,909139,750,00036,769,0002,113,536
9Jun 27, 2026 17:115,350186,098,005139,850,00036,720,0002,113,536