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 17, 2026 01:07Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 5, 2026 04:54Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 5, 2026 05:29012,706,7637,035,0001,109,0002,174,976expected "1568 ", got "1173 "stderr
2Sep 5, 2026 05:29014,082,976,68842,209,645,0004,049,0002,170,880expected "2620949 ", got "1638400 "stderr
3Sep 5, 2026 05:29020,021,514,41060,026,836,0003,031,00086,016Killed by timeout
4Aug 17, 2026 01:152,13063,928,156160,704,0001,218,0002,170,880stderr
5Aug 17, 2026 01:152,13063,906,962160,628,0001,222,0002,170,880stderr
6Aug 17, 2026 01:152,13664,090,938160,962,0001,159,0002,170,880stderr
7Aug 17, 2026 01:152,14864,467,768160,454,0001,243,0002,170,880stderr
8Aug 17, 2026 01:152,15264,572,119160,203,0001,260,0002,170,880stderr
9Aug 17, 2026 01:152,15264,584,903162,289,0001,230,0002,170,880stderr
10Aug 17, 2026 01:152,15764,730,016162,757,0001,265,0002,170,880stderr
11Aug 17, 2026 01:152,16064,803,344162,791,0001,011,0002,170,880stderr
12Aug 17, 2026 01:152,16064,829,832160,870,0001,150,0002,170,880stderr