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

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

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 21:54Tomislav Tunkovic14.16CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 4, 2026 22:00011,122,360,65733,331,112,0004,012,0002,170,880expected "2437827 ", got "2162688 "stderr
2Sep 4, 2026 22:00011,588,1086,435,00002,174,976expected "601 ", got "591 "stderr
3Sep 4, 2026 22:00011,915,4687,175,00002,174,976expected "601 ", got "627 "stderr
4Aug 23, 2026 18:561,67650,281,142118,676,0001,032,0002,170,880stderr
5Aug 23, 2026 18:561,67850,350,799118,379,0001,015,0002,170,880stderr
6Aug 23, 2026 18:561,67950,377,535119,867,0002,027,0002,170,880stderr
7Aug 23, 2026 18:561,68150,446,289119,556,0001,039,0002,170,880stderr
8Aug 23, 2026 18:561,68150,434,890120,769,0001,274,0002,170,880stderr
9Aug 23, 2026 18:561,68650,604,074121,289,0001,272,0002,170,880stderr
10Aug 23, 2026 18:561,68950,694,355120,873,0002,025,0002,170,880stderr
11Aug 23, 2026 18:561,70551,172,434120,366,0001,013,0002,170,880stderr
12Aug 23, 2026 18:561,71451,432,428123,517,0001,252,0002,170,880stderr