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 21:41Victor 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 21:450110,413,744282,587,00016,654,0002,269,184expected "1021650 ", got "1021648 "stderr
2Aug 16, 2026 21:453,680110,405,678281,061,00015,791,0002,564,096stderr
3Aug 16, 2026 21:453,681110,436,939280,513,00016,744,0002,453,504stderr
4Aug 16, 2026 21:453,683110,492,875282,985,00016,624,0002,412,544stderr
5Aug 16, 2026 21:453,694110,820,956282,159,00016,732,0002,404,352stderr
6Aug 16, 2026 21:453,719111,590,968280,299,00016,740,0002,555,904stderr
7Aug 16, 2026 21:453,762112,887,547288,078,00016,544,0002,428,928stderr
8Aug 16, 2026 21:453,770113,123,040288,239,00016,532,0002,633,728stderr
9Aug 16, 2026 21:453,787113,632,707289,369,00016,489,0002,486,272stderr