Attack

AtCoder
IDabc302_a
Time2000ms
Memory256MB
Difficulty
There is an enemy with stamina $A$. Every time you attack the enemy, its stamina reduces by $B$. At least how many times do you need to attack the enemy to make its stamina $0$ or less? ## Constraints * $1 \le A,B \le 10^{18}$ * $A$ and $B$ are integers. ## Input The input is given from Standard Input in the following format: $A$ $B$ [samples]
Samples
Input #1
7 3
Output #1
3

Attacking three times make the enemy's stamina $-2$.
Attacking only twice makes the stamina $1$, so you need to attack it three times.
Input #2
123456789123456789 987654321
Output #2
124999999
Input #3
999999999999999998 2
Output #3
499999999999999999
API Response (JSON)
{
  "problem": {
    "name": "Attack",
    "description": {
      "content": "There is an enemy with stamina $A$. Every time you attack the enemy, its stamina reduces by $B$. At least how many times do you need to attack the enemy to make its stamina $0$ or less?",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc302_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "There is an enemy with stamina $A$. Every time you attack the enemy, its stamina reduces by $B$.\nAt least how many times do you need to attack the enemy to make its stamina $0$ or less?\n\n## Constraint...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments