

Time Limit: 2 sec / Memory Limit: 1024 MB
配点 : 100 点
問題文
あなたは twiblr という SNS をしています。
twiblr では、フォロー数が 2\,\times\,( フォロワー数 )\,+\,100 を超えない範囲でフォロー数を増やすことができます。
あなたの現在のフォロワー数は A で、フォロー数は B です。
フォロー数はあといくつ増やせますか?
制約
- 0 \le A, B \le 10000
- B \le 2 \times A + 100
- 入力は全て整数
入力
入力は以下の形式で標準入力から与えられる。
A B
出力
フォロー数があといくつ増やせるかを出力せよ。
入力例 1
200 300
出力例 1
200
フォロー数は 2 \times 200 + 100 = 500 まで増やせるので、あと 200 増やせます。
入力例 2
10000 0
出力例 2
20100
Score : 100 points
Problem Statement
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
Output
Print the maximum number of extra users you can follow now.
Sample Input 1
200 300
Sample Output 1
200
You can follow at most 2 \times 200 + 100 = 500 users, that is, 200 more users than you are following now.
Sample Input 2
10000 0
Sample Output 2
20100