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 listJul 8, 2026 09:32Victor 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
1Jul 8, 2026 09:34090,928,343234,741,0004,460,0002,711,552expected "1018588 ", got "1018587 "stderr
2Jul 8, 2026 09:342,93588,076,642232,698,0003,232,0002,707,456stderr
3Jul 8, 2026 09:342,94088,217,021233,163,0003,143,0002,707,456stderr
4Jul 8, 2026 09:342,96689,005,784231,745,0005,457,0002,711,552stderr
5Jul 8, 2026 09:342,97289,182,409233,348,0003,172,0002,707,456stderr
6Jul 8, 2026 09:343,02490,724,912235,185,0003,258,0002,711,552stderr
7Jul 8, 2026 09:343,03591,065,474234,745,0003,225,0002,711,552stderr
8Jul 8, 2026 09:343,03591,077,714235,658,0003,235,0002,711,552stderr
9Jul 8, 2026 09:343,03991,196,584236,123,0003,169,0002,711,552stderr