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 listJun 26, 2026 00:00Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 31, 2026 13:44Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2026 14:17010,942,24803,472,0002,142,208expected "17193 ", got "14405 "
2Oct 31, 2026 14:17057,579,710133,700,0003,214,0002,646,016expected "2103574 ", got "1185888 "
3Oct 31, 2026 14:17054,667,623125,664,0003,260,0002,646,016expected "2104598 ", got "1187148 "
4Jun 26, 2026 00:012,94488,325,042237,335,0001,047,0002,654,208
5Jun 26, 2026 00:012,95088,512,257235,819,0003,179,0002,650,112
6Jun 26, 2026 00:012,95188,554,085235,991,0003,243,0002,654,208
7Jun 26, 2026 00:012,95788,737,677236,252,0003,170,0002,646,016
8Jun 26, 2026 00:013,01790,518,431239,990,0003,173,0002,654,208
9Jun 26, 2026 00:013,04691,401,932239,238,0003,125,0002,646,016
10Jun 26, 2026 00:013,05091,512,196239,372,0003,177,0002,654,208
11Jun 26, 2026 00:013,08592,555,138244,733,0001,121,0002,658,304
12Jun 26, 2026 00:013,10793,236,128243,886,0003,115,0002,641,920