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

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

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 16:57Tomislav Tunkovic26.71CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 4, 2026 17:10012,285,1866,211,0001,075,0002,174,976expected "8921 ", got "6250 "stderr
2Sep 4, 2026 17:10011,985,5953,141,0001,285,0002,174,976expected "18055 ", got "13290 "stderr
3Sep 4, 2026 17:10017,729,457,87453,152,040,0004,042,0002,170,880expected "2748926 ", got "1638400 "stderr
4Aug 16, 2026 15:192,11463,443,681159,696,0001,218,0002,170,880stderr
5Aug 16, 2026 15:192,13964,192,271158,029,0001,229,0002,170,880stderr
6Aug 16, 2026 15:192,13964,179,730159,648,0001,228,0002,170,880stderr
7Aug 16, 2026 15:192,13964,195,921159,544,0001,214,0002,170,880stderr
8Aug 16, 2026 15:192,14264,279,599159,264,0001,224,0002,170,880stderr
9Aug 16, 2026 15:192,15164,556,368160,013,0001,231,0002,170,880stderr
10Aug 16, 2026 15:192,15564,655,341159,398,0001,239,0002,170,880stderr
11Aug 16, 2026 15:192,16064,823,116159,525,0001,239,0002,170,880stderr
12Aug 16, 2026 15:192,17865,345,824160,300,0001,243,0002,170,880stderr