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 18, 2026 17:03Victor 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:27013,368,0173,911,0002,286,0002,142,208expected "86 ", got "62 "
2Nov 3, 2026 00:27095,183,262252,866,0002,104,0002,662,400expected "2109073 ", got "1191096 "
3Nov 3, 2026 00:27087,140,890229,346,0002,090,0002,662,400expected "2108939 ", got "1190799 "
4Jun 18, 2026 17:043,06892,056,239241,999,0001,023,0002,654,208
5Jun 18, 2026 17:043,08292,476,759242,938,0001,190,0002,654,208
6Jun 18, 2026 17:043,08392,491,722240,429,0003,114,0002,654,208
7Jun 18, 2026 17:043,08592,568,861241,306,0001,018,0002,654,208
8Jun 18, 2026 17:043,08692,596,506241,148,0003,123,0002,654,208
9Jun 18, 2026 17:043,09592,874,449240,905,0003,177,0002,654,208
10Jun 18, 2026 17:043,09592,870,696243,787,0001,010,0002,654,208
11Jun 18, 2026 17:043,16294,867,768246,500,00002,654,208
12Jun 18, 2026 17:043,17295,167,257245,155,0002,049,0002,654,208