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 listOct 9, 2026 23:54janwwwjanwwwError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 29, 2026 23:35Andrew Epstein256.14CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 29, 2026 23:50065,026,980133,460,0007,595,0002,203,648expected "2103921 ", got "1858161 "
2Oct 29, 2026 23:5041812,561,97901,926,0002,170,880
3Oct 29, 2026 23:5041912,587,46402,090,0002,170,880
4Oct 9, 2026 23:562,18165,459,977156,490,0001,016,0002,166,784
5Oct 9, 2026 23:562,21566,460,191157,021,0001,020,0002,166,784
6Oct 9, 2026 23:562,22666,809,017159,793,0001,016,0002,166,784
7Oct 9, 2026 23:562,23767,133,787162,338,0001,008,0002,166,784
8Oct 9, 2026 23:562,24967,482,214161,461,0001,009,0002,166,784
9Oct 9, 2026 23:562,26167,836,641164,837,0001,012,0002,166,784
10Oct 9, 2026 23:562,27768,310,708164,983,0001,006,0002,166,784
11Oct 9, 2026 23:562,29168,758,625166,518,0001,011,0002,166,784
12Oct 9, 2026 23:562,32069,617,899164,301,0001,017,0002,166,784