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 17:51Victor 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 17:52064,891,929164,072,0001,211,0002,170,880expected "1019696 ", got "1019695 "stderr
2Aug 16, 2026 17:522,17265,164,382164,038,0001,151,0002,170,880stderr
3Aug 16, 2026 17:522,18265,472,280165,236,0001,220,0002,170,880stderr
4Aug 16, 2026 17:522,19365,799,096165,084,0001,253,0002,170,880stderr
5Aug 16, 2026 17:522,19465,825,176162,928,0001,274,0002,170,880stderr
6Aug 16, 2026 17:522,19565,861,362164,147,0001,226,0002,170,880stderr
7Aug 16, 2026 17:522,20266,078,676164,776,0001,216,0002,170,880stderr
8Aug 16, 2026 17:522,20966,281,003165,312,0001,233,0002,170,880stderr
9Aug 16, 2026 17:522,22666,781,578164,453,0001,048,0002,170,880stderr