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 16:29Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 31, 2026 14:49Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2026 14:5004,342,301,0774,320,433,00012,254,0002,113,536expected "2107332 ", got "1762818 "
2Oct 31, 2026 14:50011,229,56601,740,0002,117,632expected "319 ", got "305 "
3Oct 31, 2026 14:505111,118,14301,714,0002,117,632
4Jun 27, 2026 16:304,685162,536,235117,692,00036,944,0002,113,536
5Jun 27, 2026 16:304,687163,032,146117,981,00036,709,0002,113,536
6Jun 27, 2026 16:304,688162,437,758117,999,00036,732,0002,113,536
7Jun 27, 2026 16:304,691162,728,512118,107,00036,711,0002,113,536
8Jun 27, 2026 16:304,705163,520,584117,705,00037,576,0002,113,536
9Jun 27, 2026 16:304,709163,416,887117,711,00037,707,0002,113,536
10Jun 27, 2026 16:304,719163,613,327117,944,00037,807,0002,113,536
11Jun 27, 2026 16:304,723163,929,737119,043,00036,830,0002,113,536
12Jun 27, 2026 16:304,729164,025,270118,215,00037,857,0002,113,536