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 listSep 1, 2026 11:12Victor 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
1Sep 1, 2026 11:13053,251,336125,812,0001,059,0002,170,880expected "1020683 ", got "1020682 "stderr
2Sep 1, 2026 11:131,75952,771,132126,343,0002,012,0002,170,880stderr
3Sep 1, 2026 11:131,76052,822,299125,794,0002,008,0002,170,880stderr
4Sep 1, 2026 11:131,76953,075,194124,713,0002,016,0002,170,880stderr
5Sep 1, 2026 11:131,77453,221,655125,385,0002,014,0002,170,880stderr
6Sep 1, 2026 11:131,77453,221,803124,934,0002,006,0002,170,880stderr
7Sep 1, 2026 11:131,77953,396,892126,452,0001,006,0002,170,880stderr
8Sep 1, 2026 11:131,78353,510,303126,891,0001,024,0002,170,880stderr
9Sep 1, 2026 11:131,79253,786,810125,845,0001,040,0002,170,880stderr