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 24, 2026 09:01Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 31, 2026 13:44Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2026 14:02012,478,3382,282,0002,034,0002,174,976expected "16598 ", got "14762 "stderr
2Oct 31, 2026 14:02013,801,2054,101,0001,531,0002,174,976expected "417 ", got "509 "stderr
3Oct 31, 2026 14:02025,182,29039,665,0001,250,0002,170,880expected "2106900 ", got "1232910 "stderr
4Aug 24, 2026 09:021,68050,408,112118,083,0001,006,0002,170,880stderr
5Aug 24, 2026 09:021,69750,912,914120,643,0001,017,0002,170,880stderr
6Aug 24, 2026 09:021,70251,064,570121,113,0001,020,0002,170,880stderr
7Aug 24, 2026 09:021,72351,697,756123,689,0002,026,0002,170,880stderr
8Aug 24, 2026 09:021,72451,743,915122,146,0001,016,0002,170,880stderr
9Aug 24, 2026 09:021,72751,837,730121,505,0001,030,0002,170,880stderr
10Aug 24, 2026 09:021,73452,022,516121,256,0001,024,0002,170,880stderr
11Aug 24, 2026 09:021,79853,951,123121,340,0001,030,0002,170,880stderr
12Aug 24, 2026 09:021,81254,366,300123,279,0002,070,0002,174,976stderr