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 17, 2026 13:10Victor 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 17, 2026 13:16073,671,578186,792,0001,234,0002,170,880expected "1024372 ", got "1024371 "stderr
2Aug 17, 2026 13:162,42872,850,312187,722,0001,212,0002,170,880stderr
3Aug 17, 2026 13:162,44173,257,473187,015,0001,211,0002,170,880stderr
4Aug 17, 2026 13:162,44573,372,684186,940,0001,222,0002,170,880stderr
5Aug 17, 2026 13:162,44873,440,238187,438,0001,213,0002,170,880stderr
6Aug 17, 2026 13:162,44973,486,897187,589,0001,251,0002,170,880stderr
7Aug 17, 2026 13:162,74082,221,776187,880,0001,252,0002,170,880stderr
8Aug 17, 2026 13:162,78083,410,738190,961,0001,006,0002,170,880stderr
9Aug 17, 2026 13:163,03290,972,416194,181,00010,266,0002,170,880stderr