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

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

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 12:22Tomislav Tunkovic27.93CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 4, 2026 12:23011,675,6012,680,0001,516,0002,174,976expected "8708 ", got "7868 "stderr
2Sep 4, 2026 12:23020,022,639,32860,028,549,0006,041,00069,632Killed by timeout
3Aug 23, 2026 18:541,70251,084,277122,041,0001,301,0002,170,880stderr
4Aug 23, 2026 18:541,70451,124,408122,485,0001,007,0002,170,880stderr
5Aug 23, 2026 18:541,71051,320,940122,714,0001,233,0002,170,880stderr
6Aug 23, 2026 18:541,71051,329,499122,668,0001,009,0002,170,880stderr
7Aug 23, 2026 18:541,72251,670,691123,487,0001,014,0002,170,880stderr
8Aug 23, 2026 18:541,72351,702,928124,247,0002,017,0002,170,880stderr
9Aug 23, 2026 18:541,72751,837,804124,971,0001,008,0002,170,880stderr
10Aug 23, 2026 18:541,75652,696,570127,380,0001,265,0002,170,880stderr
11Aug 23, 2026 18:541,79853,953,383128,260,0001,014,0002,170,880stderr