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

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

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 22:40Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 4, 2026 22:58011,959,0186,144,0001,188,0002,174,976expected "726 ", got "850 "stderr
2Sep 4, 2026 22:58020,022,188,10160,028,497,0006,058,00069,632Killed by timeout
3Aug 31, 2026 09:511,65949,770,598118,283,0001,016,0002,170,880stderr
4Aug 31, 2026 09:511,65949,794,733118,582,0002,020,0002,170,880stderr
5Aug 31, 2026 09:511,66049,828,493118,370,0001,025,0002,170,880stderr
6Aug 31, 2026 09:511,66349,894,593118,789,0001,229,0002,170,880stderr
7Aug 31, 2026 09:511,66349,909,482118,954,0001,221,0002,170,880stderr
8Aug 31, 2026 09:511,66950,099,166117,745,0001,022,0002,170,880stderr
9Aug 31, 2026 09:511,68750,622,412119,604,0001,010,0002,170,880stderr
10Aug 31, 2026 09:511,69950,980,148119,675,0001,011,0002,170,880stderr
11Aug 31, 2026 09:511,70651,201,087120,106,0001,012,0002,170,880stderr