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 listApr 21, 2026 17:11olliecrowolliecrowError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 15, 2026 18:12Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2026 18:130154,452,484134,494,0009,052,0002,134,016expected "2105400 ", got "2105398 "
2Oct 15, 2026 18:13022,256,5283,087,0008,068,0002,134,016expected "51924 ", got "51911 "
3Oct 15, 2026 18:131,48344,502,91824,026,0009,139,0002,138,112
4Apr 21, 2026 17:146,427192,819,932491,575,00012,962,0002,580,480
5Apr 21, 2026 17:146,435193,065,142498,962,0009,999,0002,752,512
6Apr 21, 2026 17:146,492194,767,059492,840,00011,971,0002,772,992
7Apr 21, 2026 17:146,561196,858,350499,192,00010,023,0002,449,408
8Apr 21, 2026 17:146,598197,958,037493,736,00010,014,0002,740,224
9Apr 21, 2026 17:146,603198,108,196495,864,0008,997,0002,600,960
10Apr 21, 2026 17:146,643199,294,909493,076,00011,001,0002,686,976
11Apr 21, 2026 17:146,757202,722,685494,882,0009,977,0002,678,784
12Apr 21, 2026 17:146,854205,644,001502,383,0007,990,0002,449,408