AtCoder Beginner Contest 182
A
twiblr
AtCoder
⌀ 0
原题
←B →
翻译中…

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.

翻译中…

样例

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
题目信息
题号
abc182_a
时间限制
2 s
内存限制
1024 MB

题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。