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 listAug 23, 2026 16:54Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 22:36Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 4, 2026 22:48012,168,8273,574,0001,364,0002,174,976expected "18111 ", got "17901 "stderr
2Sep 4, 2026 22:48012,166,5065,243,0001,188,0002,174,976expected "192832 ", got "172281 "stderr
3Sep 4, 2026 22:48012,581,4897,346,0001,143,0002,174,976expected "210074 ", got "183836 "stderr
4Aug 23, 2026 16:551,85555,672,915135,565,0002,000,0002,170,880stderr
5Aug 23, 2026 16:551,86756,016,546137,751,0001,256,0002,170,880stderr
6Aug 23, 2026 16:551,88156,445,261137,316,0002,031,0002,170,880stderr
7Aug 23, 2026 16:551,88856,664,346137,629,0001,012,0002,170,880stderr
8Aug 23, 2026 16:551,89956,997,731139,248,0001,035,0002,170,880stderr
9Aug 23, 2026 16:551,91657,499,871141,338,0001,022,0002,170,880stderr
10Aug 23, 2026 16:551,92357,710,162140,555,0001,026,0002,170,880stderr
11Aug 23, 2026 16:551,97259,184,123146,406,0001,265,0002,170,880stderr
12Aug 23, 2026 16:552,03360,990,813152,281,0001,246,0002,170,880stderr