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 16, 2026 22:28Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 12:19Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 4, 2026 12:20011,700,9205,252,0001,087,0002,174,976expected "1685 ", got "1445 "stderr
2Sep 4, 2026 12:20020,020,469,76560,023,791,0005,021,00086,016Killed by timeout
3Aug 16, 2026 22:312,04861,441,042153,799,0001,215,0002,170,880stderr
4Aug 16, 2026 22:312,05161,543,724153,095,0001,256,0002,170,880stderr
5Aug 16, 2026 22:312,05761,710,013154,810,0001,155,0002,170,880stderr
6Aug 16, 2026 22:312,06161,839,105154,890,0001,215,0002,170,880stderr
7Aug 16, 2026 22:312,06361,891,931154,353,0001,161,0002,170,880stderr
8Aug 16, 2026 22:312,07062,101,508155,313,0001,159,0002,170,880stderr
9Aug 16, 2026 22:312,07162,146,253155,174,0001,211,0002,170,880stderr
10Aug 16, 2026 22:312,08262,463,681155,035,0001,217,0002,170,880stderr
11Aug 16, 2026 22:312,52675,799,032169,419,0001,005,0002,170,880stderr