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 03:44Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Nov 3, 2026 00:06Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 3, 2026 00:27042,062,65589,478,0002,139,0002,654,208expected "2105430 ", got "1188085 "
2Nov 3, 2026 00:27014,107,7834,284,0002,755,0002,404,352expected "1726 ", got "1449 "
3Nov 3, 2026 00:2738011,413,8371,571,0003,034,0002,404,352
4Jun 26, 2026 03:452,84385,315,221228,128,0003,081,0002,654,208
5Jun 26, 2026 03:452,84585,371,329228,347,0003,122,0002,658,304
6Jun 26, 2026 03:452,85185,548,487228,831,0003,139,0002,658,304
7Jun 26, 2026 03:452,85385,608,539229,280,0003,129,0002,658,304
8Jun 26, 2026 03:452,86085,826,565229,703,0003,117,0002,658,304
9Jun 26, 2026 03:452,87386,211,667230,491,0003,139,0002,654,208
10Jun 26, 2026 03:452,90887,250,166232,159,0003,138,0002,412,544
11Jun 26, 2026 03:452,91687,482,058231,792,0003,132,0002,658,304
12Jun 26, 2026 03:452,95688,688,251232,782,0003,031,0002,658,304