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 23, 2026 14:22Victor 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 23, 2026 14:23085,632,310226,858,0001,113,0002,170,880expected "1025758 ", got "1025759 "stderr
2Aug 23, 2026 14:232,82684,797,201224,150,0001,085,0002,170,880stderr
3Aug 23, 2026 14:232,83084,922,490224,489,0001,035,0002,170,880stderr
4Aug 23, 2026 14:232,84085,213,969224,613,0001,032,0002,170,880stderr
5Aug 23, 2026 14:232,84285,288,972224,885,0001,129,0002,170,880stderr
6Aug 23, 2026 14:232,85185,535,337225,589,0001,037,0002,170,880stderr
7Aug 23, 2026 14:232,85685,687,723226,952,0001,082,0002,170,880stderr
8Aug 23, 2026 14:232,87586,264,377226,537,0001,043,0002,170,880stderr
9Aug 23, 2026 14:232,90987,283,336229,519,0001,053,0002,170,880stderr