#ABC156A. Beginner
Beginner
题目描述
Takahashi is a member of a programming competition site, ButCoder.
Each member of ButCoder is assigned two values: Inner Rating and Displayed Rating.
The Displayed Rating of a member is equal to their Inner Rating if the member has participated in or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus when the member has participated in contests.
Takahashi has participated in contests, and his Displayed Rating is . Find his Inner Rating.
高桥是编程竞赛网站 ButCoder 的成员。
ButCoder 的每个成员都被赋予两个值:内部评分和显示评分**。
如果会员参加过 或更多比赛,则其显示评分等于其内部评分。否则,当会员参加过 次比赛时,显示等级将是其内部等级减去 。
高桥参加了 项比赛,他的显示评分是 。查找他的内部评分。
输入格式
输入内容按以下格式标准输入:
输出格式
打印他的内心评价。
样例 #1
样例输入 #1
2 2919
样例输出 #1
3719
样例 #2
样例输入 #2
22 3051
样例输出 #2
3051
说明
数据规模与约定
- 所有输入值均为整数。
样例 解释
高桥参加过 次比赛,少于 ,因此他的显示评分是他的内心评分减去 。
因此,高桥的内心评分为 。