编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#17524 #2015. shenchuan的CF段位 Accepted 100 6 ms 400 K C++ 11 / 647 B 192022211908 2024-10-19 13:17:38
显示原始代码
#include <iostream>

int main() {
    int n, x;
    scanf("%d", &n);
    while (n--) {
        scanf("%d", &x);
        if (x >= 0 && x < 1200)
            printf("Newbie ");
        else if (x < 1400)
            printf("Pupil ");
        else if (x < 1600)
            printf("Specialist ");
        else if (x < 1900)
            printf("Expert ");
        else if (x < 2100)
            printf("Candidate Master ");
        else if (x < 2300)
            printf("Master ");
        else if (x < 2400)
            printf("International Master ");
        else if (x < 2600)
            printf("Grandmaster ");
        else if (x < 3000)
            printf("International Grandmaster ");
        else if (x < 4000)
            printf("Legendary Grandmaster ");
        else if (x >= 4000)
            printf("Tourist ");
        if (x >= 1700)
            printf("Yes\n");
        else
            printf("No\n");
    }
}
子任务 #1
Accepted
得分:100
测试点 #1
Accepted
得分:100
用时:3 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
用时:3 ms
内存:400 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