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 listDec 22, 2025 11:07Rajarshi BasuRajarshi BasuError
Source Code

Source code access is restricted. Log in to request access.

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 13:57M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 14:32022,076,6277,456,0003,252,0002,125,824expected "1000000 ", got "999999 "stderr
2May 17, 2026 14:32022,818,50110,436,0003,209,0002,117,632expected "1000000 ", got "999999 "stderr
3May 17, 2026 14:32022,109,0858,262,0002,385,0002,125,824expected "1000000 ", got "999999 "stderr
4Dec 22, 2025 11:076,135184,043,182155,839,0003,995,0002,760,704
5Dec 22, 2025 11:076,176185,275,531156,211,0004,005,0002,768,896
6Dec 22, 2025 11:076,198185,931,744160,642,0002,008,0002,568,192
7Dec 22, 2025 11:076,220186,613,991157,458,0003,986,0002,760,704
8Dec 22, 2025 11:076,271188,127,973155,649,0003,991,0002,560,000
9Dec 22, 2025 11:076,279188,363,793157,076,0004,001,0002,760,704
10Dec 22, 2025 11:076,326189,782,258155,670,0004,989,0002,560,000
11Dec 22, 2025 11:076,351190,518,277159,455,0004,011,0002,551,808
12Dec 22, 2025 11:076,362190,868,604163,756,0002,995,0002,637,824