#abc219a. A - AtCoder Quiz 2
A - AtCoder Quiz 2
Score : points
问题描述
在AtCoder王国中,存在一项竞技编程能力的标准测试。
考生将获得一个介于分之间的分数,并根据该分数获得相应的排名,如下所示:
- 对于不低于但小于的分数,评为“新手”;
- 对于不低于但小于的分数,评为“中级”;
- 对于不低于但小于的分数,评为“高级”;
- 对于不低于的分数,评为“专家”。
高桥参加了这次测试并获得了分。
请找出晋升到上一排名所需的最少额外分数。然而,如果他的当前排名已经是“专家”,则输出expert,因为没有比“专家”更高的排名了。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
In the Kingdom of AtCoder, there is a standardized test of competitive programming proficiency.
An examinee will get a score out of and obtain a rank according to the score, as follows:
- Novice, for a score not less than but less than ;
- Intermediate, for a score not less than but less than ;
- Advanced, for a score not less than but less than ;
- Expert, for a score not less than .
Takahashi took this test and got points.
Find the minimum number of extra points needed to go up one rank higher. If, however, his rank was Expert, print expert, as there is no higher rank than that.
Constraints
- is an integer.
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
Sample Input 1
56
Sample Output 1
14
He got points and was certified as Intermediate. In order to reach the next rank of Advanced, he needs at least more points.
Sample Input 2
32
Sample Output 2
8
Sample Input 3
0
Sample Output 3
40
Sample Input 4
100
Sample Output 4
expert
He got full points and was certified as Expert. There is no rank higher than that, so print expert.
update @ 2024/3/10 09:40:15