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 18:43highload-churnerhighload-churnerError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 15, 2026 18:15Andrew Epstein12.04CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2026 18:28020,024,103,94119,977,596,00034,723,00016,384Killed by timeout
2Oct 9, 2026 18:4512,142364,260,029306,667,00046,510,00020,480
3Oct 9, 2026 18:4512,294368,846,785311,053,00046,867,00020,480
4Oct 9, 2026 18:4512,790383,707,665325,129,00047,780,00020,480
5Oct 9, 2026 18:4512,836385,096,693326,165,00048,424,00020,480
6Oct 9, 2026 18:4512,945388,354,793328,866,00048,920,00020,480
7Oct 9, 2026 18:4512,968389,066,511330,633,00047,836,00020,480
8Oct 9, 2026 18:4512,986389,583,503330,458,00048,675,00020,480
9Oct 9, 2026 18:4513,097392,928,272333,805,00048,657,00020,480
10Oct 9, 2026 18:4513,141394,258,437335,227,00048,577,00020,480