Star

AtCoder
IDabc192_a
Time2000ms
Memory256MB
Difficulty
Takahashi is playing a game. In this game, each time the number of coins you have collected so far becomes a multiple of $100$, you get a prize. Takahashi has collected $X$ coins so far. How many more coins does he need to collect before he gets the next prize? (If $X$ is a multiple of $100$, we assume that he has already got the prize for collecting $X$ coins in total.) ## Constraints * $0 \leq X \leq 10^5$ ## Input Input is given from Standard Input in the following format: $X$ [samples]
Samples
Input #1
140
Output #1
60

He gets the next prize when he has collected $200$ coins in total. To get it, he needs to collect $60$ more coins.
Input #2
1000
Output #2
100

He gets the next prize when he has collected $1100$ coins in total.
API Response (JSON)
{
  "problem": {
    "name": "Star",
    "description": {
      "content": "Takahashi is playing a game. In this game, each time the number of coins you have collected so far becomes a multiple of $100$, you get a prize. Takahashi has collected $X$ coins so far. How many more",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc192_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "Takahashi is playing a game.\nIn this game, each time the number of coins you have collected so far becomes a multiple of $100$, you get a prize.\nTakahashi has collected $X$ coins so far. How many more...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments