编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#18328 #2015. shenchuan的CF段位 Accepted 100 4 ms 284 K C / 1.1 K C192022211886 2024-10-19 15:06:23
显示原始代码
#include <stdio.h>
int main() {
    int n, a, b;

    scanf("%d", &n);
    b = 0;
    do {
        scanf("%d", &a);
        if (0 <= a && a < 1200) {
            printf("Newbie No\n");
        } else if (1200 <= a && a < 1400) {
            printf("Pupil No\n");
        } else if (1400 <= a && a < 1600) {
            printf("Specialist No\n");
        } else if (1600 <= a && a < 1700) {
            printf("Expert No\n");
        } else if (1700 <= a && a < 1900) {
            printf("Expert Yes\n");
        } else if (1900 <= a && a < 2100) {
            printf("Candidate Master Yes\n");
        } else if (2100 <= a && a < 2300) {
            printf("Master Yes\n");
        } else if (2300 <= a && a < 2400) {
            printf("International Master Yes\n");
        } else if (2400 <= a && a < 2600) {
            printf("Grandmaster Yes\n");
        } else if (2600 <= a && a < 3000) {
            printf("International Grandmaster Yes\n");
        } else if (3000 <= a && a < 4000) {
            printf("Legendary Grandmaster Yes\n");
        } else {
            printf("Tourist Yes\n");
        }
        b++;
    } while (b < n);
    return 0;
}
子任务 #1
Accepted
得分:100
测试点 #1
Accepted
得分:100
用时:2 ms
内存:284 KiB

输入文件(1.in

20
3669
3865
3122
1249
2086
3643
730
3342
1452
1304
3535
3886
3592
1251
3370
1071
3
<23 bytes omitted>

答案文件(1.out

Legendary Grandmaster Yes
Legendary Grandmaster Yes
Legendary Grandmaster Yes
Pupil No
Candidate
<319 bytes omitted>

用户输出

Legendary Grandmaster Yes
Legendary Grandmaster Yes
Legendary Grandmaster Yes
Pupil No
Candidate Master Yes
Legendary Grandmaste
<271 bytes omitted>

系统信息

Exited with return code 0
测试点 #2
Accepted
得分:100
用时:2 ms
内存:272 KiB

输入文件(2.in

1000
259
2414
4622
4211
3558
1968
4316
715
780
1652
1641
452
318
4342
2438
3835
425
<5672 bytes omitted>

答案文件(2.out

Newbie No
Grandmaster Yes
Tourist Yes
Tourist Yes
Legendary Grandmaster Yes
Candidate Master Ye
<17217 bytes omitted>

用户输出

Newbie No
Grandmaster Yes
Tourist Yes
Tourist Yes
Legendary Grandmaster Yes
Candidate Master Yes
Tourist Yes
Newbie No
Newbie No
<16189 bytes omitted>

系统信息

Exited with return code 0