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 23:47Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Nov 3, 2026 00:05Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 3, 2026 00:23041,303,80790,404,0002,166,0002,658,304expected "2106246 ", got "1188672 "
2Nov 3, 2026 00:23011,506,9421,643,0003,163,0002,404,352expected "1466 ", got "1281 "
3Nov 3, 2026 00:23053,516,70697,322,0003,353,0002,658,304expected "2107638 ", got "1189740 "
4Jun 26, 2026 23:482,83985,176,947227,997,0003,020,0002,658,304
5Jun 26, 2026 23:482,84585,375,776228,159,0003,119,0002,658,304
6Jun 26, 2026 23:482,84585,363,957228,190,0003,079,0002,658,304
7Jun 26, 2026 23:482,84685,391,921230,604,0001,019,0002,658,304
8Jun 26, 2026 23:482,84985,477,270228,560,0003,081,0002,658,304
9Jun 26, 2026 23:482,85985,798,288227,879,0003,068,0002,658,304
10Jun 26, 2026 23:482,88086,411,211230,532,0003,107,0002,658,304
11Jun 26, 2026 23:482,89086,712,518232,427,0003,064,0002,658,304
12Jun 26, 2026 23:482,91587,455,599229,936,0003,141,0002,658,304