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 19:39Victor 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 19:46068,445,924174,402,0001,146,0002,170,880expected "1020979 ", got "1020978 "stderr
2Aug 16, 2026 19:462,26167,855,141173,069,0001,221,0002,170,880stderr
3Aug 16, 2026 19:462,28568,574,411173,736,0001,237,0002,170,880stderr
4Aug 16, 2026 19:462,28768,626,395172,662,0001,235,0002,170,880stderr
5Aug 16, 2026 19:462,29868,965,193173,861,0001,232,0002,170,880stderr
6Aug 16, 2026 19:462,30669,208,600172,982,0001,234,0002,170,880stderr
7Aug 16, 2026 19:462,31869,545,201173,414,0001,237,0002,170,880stderr
8Aug 16, 2026 19:462,33770,110,796173,395,0001,250,0002,170,880stderr
9Aug 16, 2026 19:462,34470,344,783174,151,0001,228,0002,170,880stderr