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

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

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 22:38Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 4, 2026 22:52012,494,3143,663,0001,334,0002,174,976expected "8806 ", got "9028 "stderr
2Sep 4, 2026 22:52020,013,296,20860,002,418,0005,053,00086,016Killed by timeout
3Aug 23, 2026 17:391,78053,400,534127,757,0001,014,0002,170,880stderr
4Aug 23, 2026 17:391,80954,272,282131,991,0001,255,0002,170,880stderr
5Aug 23, 2026 17:391,81854,541,221132,751,0001,248,0002,170,880stderr
6Aug 23, 2026 17:391,82154,641,470133,610,0001,206,0002,170,880stderr
7Aug 23, 2026 17:391,82854,867,679131,542,0001,007,0002,170,880stderr
8Aug 23, 2026 17:391,83054,921,100133,373,0001,005,0002,170,880stderr
9Aug 23, 2026 17:391,83354,999,563133,037,0001,006,0002,170,880stderr
10Aug 23, 2026 17:391,90157,055,251137,562,0001,010,0002,170,880stderr
11Aug 23, 2026 17:392,49374,807,182162,748,0002,107,0002,170,880stderr