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 05:04Victor 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 16, 2026 05:05090,425,935236,969,0001,031,0002,170,880expected "1022495 ", got "1022494 "stderr
2Aug 16, 2026 05:052,92887,853,283235,340,0001,194,0002,170,880stderr
3Aug 16, 2026 05:052,93688,107,480234,308,0001,037,0002,170,880stderr
4Aug 16, 2026 05:052,96488,937,912234,245,0001,005,0002,170,880stderr
5Aug 16, 2026 05:052,96889,044,270235,338,0001,031,0002,170,880stderr
6Aug 16, 2026 05:052,99189,753,904236,590,0001,010,0002,170,880stderr
7Aug 16, 2026 05:052,99689,905,728236,932,0001,014,0002,162,688stderr
8Aug 16, 2026 05:053,00990,279,912235,153,0001,037,0002,170,880stderr
9Aug 16, 2026 05:053,03491,030,554237,030,0001,005,0002,170,880stderr