Multiple Gift

AtCoder
IDarc088_a
Time2000ms
Memory256MB
Difficulty
As a token of his gratitude, Takahashi has decided to give his mother an integer sequence. The sequence $A$ needs to satisfy the conditions below: * $A$ consists of integers between $X$ and $Y$ (inclusive). * For each $1\leq i \leq |A|-1$, $A_{i+1}$ is a multiple of $A_i$ and strictly greater than $A_i$. Find the maximum possible length of the sequence. ## Constraints * $1 \leq X \leq Y \leq 10^{18}$ * All input values are integers. ## Input Input is given from Standard Input in the following format: $X$ $Y$ [samples]
Samples
Input #1
3 20
Output #1
3

The sequence $3,6,18$ satisfies the conditions.
Input #2
25 100
Output #2
3
Input #3
314159265 358979323846264338
Output #3
31
API Response (JSON)
{
  "problem": {
    "name": "Multiple Gift",
    "description": {
      "content": "As a token of his gratitude, Takahashi has decided to give his mother an integer sequence. The sequence $A$ needs to satisfy the conditions below: *   $A$ consists of integers between $X$ and $Y$ (in",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "arc088_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "As a token of his gratitude, Takahashi has decided to give his mother an integer sequence. The sequence $A$ needs to satisfy the conditions below:\n\n*   $A$ consists of integers between $X$ and $Y$ (in...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments