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 7, 2026 04:05Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 21:58Tomislav Tunkovic22.07CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 4, 2026 22:09012,747,1394,215,0001,342,0002,154,496expected "601 ", got "453 "
2Sep 4, 2026 22:09011,627,1084,938,0001,291,0002,150,400expected "601 ", got "402 "
3Sep 4, 2026 22:09012,441,8294,026,0001,357,0002,154,496expected "3136 ", got "2469 "
4Jun 7, 2026 04:063,13594,061,734246,460,0001,151,0002,146,304
5Jun 7, 2026 04:063,15794,719,135248,460,0001,007,0002,142,208
6Jun 7, 2026 04:063,16795,020,300246,211,0001,140,0002,146,304
7Jun 7, 2026 04:063,20196,042,615249,897,0002,173,0002,142,208
8Jun 7, 2026 04:063,20596,179,235251,476,0002,175,0002,142,208
9Jun 7, 2026 04:063,20696,204,562249,799,0002,156,0002,142,208
10Jun 7, 2026 04:063,20896,242,545248,443,0002,296,0002,146,304
11Jun 7, 2026 04:063,21296,376,879252,234,0001,053,0002,142,208
12Jun 7, 2026 04:063,24597,357,598251,969,0002,219,0002,142,208