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 24, 2026 08:41Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 20:09Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 4, 2026 20:10013,433,5002,952,0002,029,0002,174,976expected "601 ", got "592 "stderr
2Sep 4, 2026 20:10020,020,225,43360,023,431,0005,060,00090,112Killed by timeout
3Aug 24, 2026 08:441,77153,157,914126,777,0002,043,0002,174,976stderr
4Aug 24, 2026 08:441,77953,382,195128,318,0001,021,0002,174,976stderr
5Aug 24, 2026 08:441,79553,872,982128,768,0001,017,0002,174,976stderr
6Aug 24, 2026 08:441,79553,879,241128,297,0001,023,0002,174,976stderr
7Aug 24, 2026 08:441,80154,042,645127,954,0002,036,0002,174,976stderr
8Aug 24, 2026 08:441,80654,197,632131,076,0001,026,0002,174,976stderr
9Aug 24, 2026 08:441,81454,449,889130,511,0001,024,0002,174,976stderr
10Aug 24, 2026 08:441,82254,660,678130,552,0001,013,0002,174,976stderr
11Aug 24, 2026 08:441,82354,711,426127,058,0002,054,0002,174,976stderr