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

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

Challenge History
DateChallengerCostTypeStatus
Sep 5, 2026 02:38Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 5, 2026 04:09022,909,86636,505,0001,219,0002,170,880expected "2244145 ", got "2010465 "stderr
2Sep 5, 2026 04:09020,010,148,22759,991,977,0006,049,00086,016Killed by timeout
3Aug 24, 2026 09:191,65649,687,258117,505,0001,032,0002,170,880stderr
4Aug 24, 2026 09:191,66750,026,346118,440,0001,015,0002,170,880stderr
5Aug 24, 2026 09:191,67450,238,189119,207,0002,003,0002,170,880stderr
6Aug 24, 2026 09:191,68150,454,322118,828,0002,007,0002,170,880stderr
7Aug 24, 2026 09:191,68250,470,352118,885,0001,031,0002,170,880stderr
8Aug 24, 2026 09:191,68250,484,296119,489,0002,008,0002,170,880stderr
9Aug 24, 2026 09:191,68650,583,449119,184,0002,020,0002,170,880stderr
10Aug 24, 2026 09:191,69450,823,042121,669,0001,308,0002,170,880stderr
11Aug 24, 2026 09:191,70751,236,375120,832,0001,018,0002,170,880stderr