twiblr

AtCoder
IDabc182_a
Time2000ms
Memory256MB
Difficulty
You are on a social networking site called twiblr. In twiblr, you can follow at most $2\,\times\,($ the number of users following you $)\,+\,100$ users. You are currently following $B$ users, and $A$ users are following you. At most, how many extra users can you follow now? ## Constraints * $0 \le A, B \le 10000$ * $B \le 2 \times A + 100$ * All values in input are integers. ## Input Input is given from Standard Input in the following format: $A$ $B$ [samples]
Samples
Input #1
200 300
Output #1
200

You can follow at most $2 \times 200 + 100 = 500$ users, that is, $200$ more users than you are following now.
Input #2
10000 0
Output #2
20100
API Response (JSON)
{
  "problem": {
    "name": "twiblr",
    "description": {
      "content": "You are on a social networking site called twiblr.   In twiblr, you can follow at most $2\\,\\times\\,($ the number of users following you $)\\,+\\,100$ users.   You are currently following $B$ users, and ",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc182_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "You are on a social networking site called twiblr.  \nIn twiblr, you can follow at most $2\\,\\times\\,($ the number of users following you $)\\,+\\,100$ users.  \nYou are currently following $B$ users, and ...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments