#abc156a. A - Beginner

A - Beginner

Score : 100100 points

问题陈述

高桥是一名编程竞赛网站 ButCoder 的成员。

ButCoder 的每个成员都会被赋予两个数值:内在评级显示评级

若成员参加了 1010 场或以上的比赛,其显示评级将等于他们的内在评级。否则,当成员参加了 KK 场比赛时,其显示评级将会是他们的内在评级减去 100×(10K)100 \times (10 - K)

高桥已经参加了 NN 场比赛,且他的显示评级为 RR。请找出他的内在评级。

以上为通义千问 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 1010 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100×(10K)100 \times (10 - K) when the member has participated in KK contests.

Takahashi has participated in NN contests, and his Displayed Rating is RR. Find his Inner Rating.

Constraints

  • All values in input are integers.
  • 1N1001 \leq N \leq 100
  • 0R41110 \leq R \leq 4111

Input

Input is given from Standard Input in the following format:

NN RR

Output

Print his Inner Rating.

Sample Input 1

2 2919

Sample Output 1

3719

Takahashi has participated in 22 contests, which is less than 1010, so his Displayed Rating is his Inner Rating minus 100×(102)=800100 \times (10 - 2) = 800.

Thus, Takahashi's Inner Rating is 2919+800=37192919 + 800 = 3719.

Sample Input 2

22 3051

Sample Output 2

3051

update @ 2024/3/10 17:15:34