Unique strings v2 Sergey Svistunov

Same problem as Unique strings, but with 3 CPUs available and scoring based on wall time instead of CPU time.

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 listAug 23, 2026 18:37Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 22:43Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 4, 2026 23:03011,515,0435,342,0001,153,0002,174,976expected "2075 ", got "2017 "stderr
2Sep 4, 2026 23:03011,959,2703,089,0002,018,0002,174,976expected "28701 ", got "33345 "stderr
3Sep 4, 2026 23:03012,636,6733,883,0001,400,0002,174,976expected "601 ", got "650 "stderr
4Aug 23, 2026 18:391,77353,203,095129,109,0001,212,0002,170,880stderr
5Aug 23, 2026 18:391,78953,676,194128,924,0001,016,0002,170,880stderr
6Aug 23, 2026 18:391,80154,045,454131,756,0001,276,0002,170,880stderr
7Aug 23, 2026 18:391,80554,165,046131,485,0001,274,0002,170,880stderr
8Aug 23, 2026 18:391,80954,287,854131,867,0001,011,0002,170,880stderr
9Aug 23, 2026 18:391,81254,372,977131,982,0001,263,0002,170,880stderr
10Aug 23, 2026 18:391,81954,596,512133,188,0001,253,0002,170,880stderr
11Aug 23, 2026 18:391,83855,161,428135,486,0001,214,0002,170,880stderr
12Aug 23, 2026 18:391,84655,400,016133,653,0001,054,0002,170,880stderr