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 04:17Victor 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 04:210106,234,308282,663,0002,028,0002,170,880expected "1020495 ", got "1020494 "stderr
2Aug 16, 2026 04:213,506105,181,678282,950,0001,061,0002,170,880stderr
3Aug 16, 2026 04:213,527105,820,669285,929,0001,128,0002,170,880stderr
4Aug 16, 2026 04:213,529105,896,689286,485,0001,130,0002,170,880stderr
5Aug 16, 2026 04:213,536106,104,872287,467,0001,114,0002,170,880stderr
6Aug 16, 2026 04:213,540106,229,125284,071,0001,265,0002,170,880stderr
7Aug 16, 2026 04:213,547106,433,986287,678,0001,068,0002,170,880stderr
8Aug 16, 2026 04:213,555106,658,545287,799,0001,121,0002,170,880stderr
9Aug 16, 2026 04:213,562106,885,164287,086,0001,132,0002,170,880stderr