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

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

Challenge History
DateChallengerCostTypeStatus
Sep 5, 2026 01:03Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 5, 2026 02:46012,446,736,13537,303,716,0004,272,0002,170,880expected "2521124 ", got "2162686 "stderr
2Sep 5, 2026 02:4602,752,376,7558,225,292,0002,024,0002,170,880expected "2435610 ", got "2147658 "stderr
3Sep 5, 2026 02:46020,020,358,64160,023,846,0005,021,00086,016Killed by timeout
4Aug 23, 2026 17:441,81454,421,813132,108,0001,027,0002,170,880stderr
5Aug 23, 2026 17:441,83254,967,692133,773,0001,212,0002,170,880stderr
6Aug 23, 2026 17:441,84355,316,027134,153,0001,007,0002,170,880stderr
7Aug 23, 2026 17:441,87856,358,937137,186,0001,004,0002,170,880stderr
8Aug 23, 2026 17:441,88956,696,610136,508,0001,011,0002,170,880stderr
9Aug 23, 2026 17:441,89356,817,731140,055,0001,262,0002,170,880stderr
10Aug 23, 2026 17:441,91557,462,454140,996,0001,013,0002,170,880stderr
11Aug 23, 2026 17:441,91857,540,036142,005,0001,266,0002,170,880stderr
12Aug 23, 2026 17:441,93458,036,459136,932,0001,007,0002,170,880stderr