编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#17498 #2015. shenchuan的CF段位 Accepted 100 9 ms 332 K C++ / 1.1 K 192022211748 2024-10-19 13:08:06
显示原始代码
#include <bits/stdc++.h>
using namespace std;
__int128 Read() {
    __int128 w = 0, f = 1;
    char c = getchar();
    while (c > '9' || c < '0') {
        if (c == '-')
            f *= -1;
        c = getchar();
    }
    while (c >= '0' && c <= '9') {
        w = w * 10 + c - '0';
        c = getchar();
    }
    return w * f;
}
string Write(__int128 x) {
    string stmp = "";
    bool f = 0;
    if (x < 0)
        x *= -1, f = 1;
    while (x) {
        stmp = (char)(x % 10 + '0') + stmp;
        x /= 10;
    }
    if (!stmp.size())
        stmp = "0";
    return (f ? "-" : "") + stmp;
}
void Work() {
    int n;
    cin >> n;
    for (int i = 1; i <= n; i++) {
        int t1;
        cin >> t1;
        if (t1 < 1200)
            cout << "Newbie ";
        else if (t1 < 1400)
            cout << "Pupil ";
        else if (t1 < 1600)
            cout << "Specialist ";
        else if (t1 < 1900)
            cout << "Expert ";
        else if (t1 < 2100)
            cout << "Candidate Master ";
        else if (t1 < 2300)
            cout << "Master ";
        else if (t1 < 2400)
            cout << "International Master ";
        else if (t1 < 2600)
            cout << "Grandmaster ";
        else if (t1 < 3000)
            cout << "International Grandmaster ";
        else if (t1 < 4000)
            cout << "Legendary Grandmaster ";
        else
            cout << "Tourist ";
        if (t1 >= 1700)
            puts("Yes");
        else
            puts("No");
    }
}
signed main() {
    int T = 1;
    //	cin>>T;
    while (T--) Work();
    return 0;
}
子任务 #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
用时:6 ms
内存:332 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