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 14:10highload-churnerhighload-churnerError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 15, 2026 18:14Andrew Epstein11.75CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2026 18:20020,011,756,87619,967,265,00032,865,00016,384Killed by timeout
2Oct 9, 2026 14:1215,450463,516,960442,185,00010,868,00020,480
3Oct 9, 2026 14:1215,465463,963,016442,729,00010,844,00020,480
4Oct 9, 2026 14:1215,537466,136,122444,864,00010,759,00020,480
5Oct 9, 2026 14:1215,547466,416,481444,711,00011,060,00020,480
6Oct 9, 2026 14:1215,604468,145,477446,868,00010,824,00020,480
7Oct 9, 2026 14:1215,616468,496,044447,266,00010,920,00020,480
8Oct 9, 2026 14:1215,666469,984,196448,874,00010,699,00020,480
9Oct 9, 2026 14:1215,726471,795,435450,037,00011,301,00020,480
10Oct 9, 2026 14:1216,061481,859,408460,242,00011,218,00020,480