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:34Victor MerckléVictor MerckléError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 24, 2026 08:35052,933,791124,324,0001,034,0002,170,880expected "1026033 ", got "1026032 "stderr
2Aug 24, 2026 08:351,68350,509,070119,125,0001,028,0002,170,880stderr
3Aug 24, 2026 08:351,68550,574,143118,823,0001,040,0002,170,880stderr
4Aug 24, 2026 08:351,69850,956,433120,807,0002,035,0002,170,880stderr
5Aug 24, 2026 08:351,71151,347,895122,141,0002,043,0002,170,880stderr
6Aug 24, 2026 08:351,73552,066,761122,067,0001,034,0002,170,880stderr
7Aug 24, 2026 08:351,74352,309,055120,516,0001,038,0002,170,880stderr
8Aug 24, 2026 08:351,74552,361,503123,270,0001,029,0002,170,880stderr
9Aug 24, 2026 08:351,97059,110,763119,807,0002,045,0002,170,880stderr