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 listMay 11, 2026 23:59Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 13:56M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 14:30021,510,8798,958,0004,474,0002,113,536expected "1000000 ", got "827527 "
2May 17, 2026 14:30020,793,4508,990,0004,459,0002,113,536expected "1000000 ", got "827527 "
3May 17, 2026 14:30022,978,0688,928,0004,418,0002,113,536expected "1000000 ", got "827527 "
4May 12, 2026 00:006,623227,138,029180,040,00038,548,0002,113,536
5May 12, 2026 00:006,626226,794,032180,093,00038,587,0002,113,536
6May 12, 2026 00:006,628226,105,555180,096,00038,635,0002,113,536
7May 12, 2026 00:006,633226,856,703180,212,00038,692,0002,113,536
8May 12, 2026 00:006,637226,800,132180,461,00038,576,0002,113,536
9May 12, 2026 00:006,649226,834,745180,615,00038,821,0002,113,536
10May 12, 2026 00:006,670229,354,082181,429,00038,709,0002,113,536
11May 12, 2026 00:006,676229,880,631181,495,00038,816,0002,113,536
12May 12, 2026 00:006,679228,471,464181,573,00038,857,0002,113,536