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 31, 2026 10:50Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 31, 2026 13:44Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2026 13:50012,032,2821,823,0001,469,0002,174,976expected "14754 ", got "12935 "stderr
2Oct 31, 2026 13:50015,241,71112,243,0001,049,0002,174,976expected "215819 ", got "220123 "stderr
3Oct 31, 2026 13:50013,144,6133,174,0001,315,0002,174,976expected "13252 ", got "11776 "stderr
4Aug 31, 2026 10:511,67350,215,848118,350,0002,036,0002,170,880stderr
5Aug 31, 2026 10:511,67450,223,540117,078,0001,015,0002,170,880stderr
6Aug 31, 2026 10:511,67450,229,432118,327,0002,020,0002,170,880stderr
7Aug 31, 2026 10:511,67650,282,569117,495,0001,024,0002,170,880stderr
8Aug 31, 2026 10:511,68850,660,000118,320,0001,025,0002,170,880stderr
9Aug 31, 2026 10:511,68850,666,777120,024,0001,024,0002,170,880stderr
10Aug 31, 2026 10:511,68950,683,821119,361,0001,041,0002,170,880stderr
11Aug 31, 2026 10:511,70151,044,158118,923,0002,035,0002,170,880stderr
12Aug 31, 2026 10:511,70351,110,742120,566,0002,011,0002,170,880stderr