#abc156a. A - Beginner
A - Beginner
Score : points
问题陈述
高桥是一名编程竞赛网站 ButCoder 的成员。
ButCoder 的每个成员都会被赋予两个数值:内在评级 和 显示评级。
若成员参加了 场或以上的比赛,其显示评级将等于他们的内在评级。否则,当成员参加了 场比赛时,其显示评级将会是他们的内在评级减去 。
高桥已经参加了 场比赛,且他的显示评级为 。请找出他的内在评级。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
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.
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print his Inner Rating.
Sample Input 1
2 2919
Sample Output 1
3719
Takahashi has participated in contests, which is less than , so his Displayed Rating is his Inner Rating minus .
Thus, Takahashi's Inner Rating is .
Sample Input 2
22 3051
Sample Output 2
3051
update @ 2024/3/10 17:15:34
相关
在下列比赛中: