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 10, 2026 02:13zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 4, 2026 07:05Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 07:05010,825,5361,536,0001,536,0002,121,728expected "16384 ", got "349 "stderr
2Jul 4, 2026 07:05010,870,4151,040,0002,152,0002,121,728expected "16384 ", got "349 "stderr
3Jul 4, 2026 07:05011,435,3721,039,0002,098,0002,121,728expected "16384 ", got "349 "stderr
4Jan 10, 2026 02:133,056121,476,87598,857,0001,997,0002,412,544
5Jan 10, 2026 02:133,066120,068,35799,177,0002,003,0002,408,448
6Jan 10, 2026 02:133,078126,395,315100,570,0001,005,0002,420,736
7Jan 10, 2026 02:133,093131,648,734100,074,0002,001,0002,535,424
8Jan 10, 2026 02:133,156125,386,468101,154,0003,004,0002,273,280
9Jan 10, 2026 02:133,160130,753,386101,261,0003,007,0002,535,424
10Jan 10, 2026 02:133,166127,334,566101,474,0003,014,0002,420,736
11Jan 10, 2026 02:133,224130,536,820103,378,0003,011,0002,404,352
12Jan 10, 2026 02:133,238127,314,648104,846,0001,997,0002,412,544