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 listJul 5, 2026 03:09zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 5, 2026 03:16Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 5, 2026 03:16013,701,9322,243,0003,392,0002,129,920expected "16384 ", got "16383 "stderr
2Jul 5, 2026 03:16013,847,8272,249,0003,386,0002,129,920expected "16384 ", got "16383 "stderr
3Jul 5, 2026 03:16013,274,5872,758,0002,758,0002,129,920expected "16384 ", got "16383 "stderr
4Jul 5, 2026 03:113,505123,557,491113,406,0002,261,0002,121,728stderr
5Jul 5, 2026 03:113,526124,774,783113,952,0002,422,0002,121,728stderr
6Jul 5, 2026 03:113,537124,867,773114,338,0002,386,0002,121,728stderr
7Jul 5, 2026 03:113,543125,366,088114,697,0002,253,0002,121,728stderr
8Jul 5, 2026 03:113,544125,091,854114,606,0002,352,0002,121,728stderr
9Jul 5, 2026 03:113,560125,603,054115,149,0002,356,0002,121,728stderr
10Jul 5, 2026 03:113,564126,032,451115,212,0002,421,0002,121,728stderr
11Jul 5, 2026 03:113,568126,157,624115,515,0002,261,0002,121,728stderr
12Jul 5, 2026 03:113,584126,364,118116,017,0002,268,0002,121,728stderr