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 listApr 27, 2026 22:34TudyMTudyMError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 15, 2026 18:16Andrew Epstein21.85CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2026 18:350746,854,600723,664,00011,021,0002,125,824expected "2103696 ", got "2085264 "
2Oct 15, 2026 18:350663,103,730640,661,00010,201,0002,146,304expected "2101384 ", got "2082952 "
3Oct 15, 2026 18:351,01730,517,54013,896,0005,390,0002,146,304
4Apr 27, 2026 22:4410,754322,647,998873,627,00017,971,0002,613,248
5Apr 27, 2026 22:4410,762322,880,404868,943,00016,979,0002,711,552
6Apr 27, 2026 22:4410,841325,246,634883,360,00017,986,0002,822,144
7Apr 27, 2026 22:4411,313339,419,556923,369,00019,986,0002,711,552
8Apr 27, 2026 22:4411,367341,011,088924,512,00018,969,0002,772,992
9Apr 27, 2026 22:4411,396341,889,617925,933,00017,998,0002,740,224
10Apr 27, 2026 22:4411,411342,339,123930,583,00013,993,0002,621,440
11Apr 27, 2026 22:4411,433343,007,519928,158,00017,983,0002,662,400
12Apr 27, 2026 22:4411,456343,684,926925,080,00018,981,0002,736,128