Unique strings Sergey Svistunov

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 listJan 4, 2026 17:20zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 4, 2026 14:47Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 14:48011,028,1381,544,0001,543,0002,121,728expected "16384 ", got "349 "stderr
2Jul 4, 2026 14:48011,004,1681,041,0002,157,0002,121,728expected "16384 ", got "349 "stderr
3Jul 4, 2026 14:48011,017,7871,046,0002,179,0002,121,728expected "16384 ", got "349 "stderr
4Jan 4, 2026 17:203,056126,993,06699,847,000998,0002,420,736
5Jan 4, 2026 17:203,160127,174,913102,281,0002,005,0002,273,280
6Jan 4, 2026 17:203,170131,675,471103,589,0001,005,0002,416,640
7Jan 4, 2026 17:203,201134,726,262103,618,0002,012,0002,273,280
8Jan 4, 2026 17:203,272131,186,303106,975,000999,0002,535,424
9Jan 4, 2026 17:203,349136,853,197109,518,0001,004,0002,428,928
10Jan 4, 2026 17:203,357132,727,857108,775,0001,995,0002,408,448
11Jan 4, 2026 17:203,370136,036,659109,201,0002,003,0002,416,640
12Jan 4, 2026 17:203,461143,070,233112,221,0002,003,0002,416,640