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

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

Challenge History
DateChallengerCostTypeStatus
Sep 5, 2026 01:36Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 5, 2026 03:19012,193,7016,319,0001,218,0002,174,976expected "5442 ", got "5506 "stderr
2Sep 5, 2026 03:19012,009,8725,809,0001,227,0002,174,976expected "11236 ", got "12355 "stderr
3Sep 5, 2026 03:19012,873,3334,743,0001,541,0002,174,976expected "167343 ", got "155827 "stderr
4Aug 23, 2026 18:171,79353,803,421130,748,0001,008,0002,170,880stderr
5Aug 23, 2026 18:171,80954,282,527132,082,0001,291,0002,170,880stderr
6Aug 23, 2026 18:171,82754,811,303132,740,0001,220,0002,170,880stderr
7Aug 23, 2026 18:171,82854,861,058134,728,0001,258,0002,170,880stderr
8Aug 23, 2026 18:171,84855,457,449132,661,0001,004,0002,170,880stderr
9Aug 23, 2026 18:171,86956,094,642136,709,0001,012,0002,170,880stderr
10Aug 23, 2026 18:171,88556,557,229138,079,0001,002,0002,170,880stderr
11Aug 23, 2026 18:171,89556,852,790137,064,0001,007,0002,170,880stderr
12Aug 23, 2026 18:171,93257,961,277142,942,0001,007,0002,170,880stderr