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 16, 2026 15:02Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 12:21Tomislav Tunkovic89.14CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 4, 2026 12:22031,678,14061,257,0001,251,0002,170,880expected "2226508 ", got "1935033 "stderr
2Sep 4, 2026 12:22012,172,9775,442,0001,450,0002,174,976expected "8552 ", got "7041 "stderr
3Sep 4, 2026 12:22012,749,7467,294,0001,333,0002,174,976expected "14530 ", got "11250 "stderr
4Aug 16, 2026 15:032,24667,380,599169,887,0002,015,0002,170,880stderr
5Aug 16, 2026 15:032,25767,711,935170,587,0002,006,0002,170,880stderr
6Aug 16, 2026 15:032,26067,810,394170,554,0002,046,0002,170,880stderr
7Aug 16, 2026 15:032,26067,819,403171,270,0002,055,0002,170,880stderr
8Aug 16, 2026 15:032,27268,162,878170,769,0001,025,0002,170,880stderr
9Aug 16, 2026 15:032,27868,360,645171,198,0001,027,0002,170,880stderr
10Aug 16, 2026 15:032,28968,672,373173,339,0001,032,0002,170,880stderr
11Aug 16, 2026 15:032,30169,039,368172,557,0001,028,0002,170,880stderr
12Aug 16, 2026 15:032,30469,148,271171,422,0001,041,0002,170,880stderr