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 listOct 9, 2026 13:01highload-churnerhighload-churnerError
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:13020,020,782,61219,955,433,00042,303,000163,840Killed by timeout
2Oct 15, 2026 18:1354816,461,7831,487,0004,456,00049,152
3Oct 15, 2026 18:1357817,350,8203,871,0002,843,00049,152
4Oct 9, 2026 13:0319,011570,339,550552,529,0006,141,00024,576
5Oct 9, 2026 13:0319,020570,608,958552,743,0006,160,00020,480
6Oct 9, 2026 13:0319,029570,876,408553,527,0006,217,00024,576
7Oct 9, 2026 13:0319,052571,580,898553,753,0006,140,00024,576
8Oct 9, 2026 13:0319,108573,267,623554,093,0006,237,00024,576
9Oct 9, 2026 13:0319,109573,290,292555,943,0006,106,00024,576
10Oct 9, 2026 13:0319,126573,795,875556,626,0006,100,00024,576
11Oct 9, 2026 13:0319,293578,810,858561,434,0006,190,00024,576
12Oct 9, 2026 13:0319,296578,909,684562,568,0005,233,00024,576