编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#26753 #2066. 天梯赛 Accepted 100 54 ms 360 K C++ / 414 B 192022214103 2025-03-15 11:03:15
显示原始代码
#include <iostream>
using namespace std;

int main() {
    int a, b, c;
    cin >> a >> b >> c;
    int temp = a + b + c;
    if (a > 80 && b > 40) {
        if (temp >= 250) {
            cout << 1 << endl;
        } else if (temp >= 220) {
            cout << 2 << endl;
        } else if (temp >= 175) {
            cout << 3 << endl;
        } else {
            cout << -1 << endl;
        }
    } else {
        cout << -1 << endl;  //无效成绩
    }

    return 0;
}
子任务 #1
Accepted
得分:100
测试点 #1
Accepted
得分:100
用时:3 ms
内存:284 KiB

输入文件(test1.in

90 80 10

答案文件(test1.out

3

用户输出

3

系统信息

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

输入文件(test2.in

96 15 18

答案文件(test2.out

-1

用户输出

-1

系统信息

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

输入文件(test3.in

82 3 7

答案文件(test3.out

-1

用户输出

-1

系统信息

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

输入文件(test4.in

78 48 35

答案文件(test4.out

-1

用户输出

-1

系统信息

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

输入文件(test5.in

85 78 83

答案文件(test5.out

2

用户输出

2

系统信息

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

输入文件(test6.in

88 24 60

答案文件(test6.out

-1

用户输出

-1

系统信息

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

输入文件(test7.in

95 90 1

答案文件(test7.out

3

用户输出

3

系统信息

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

输入文件(test8.in

87 21 13

答案文件(test8.out

-1

用户输出

-1

系统信息

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

输入文件(test9.in

96 49 21

答案文件(test9.out

-1

用户输出

-1

系统信息

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

输入文件(test10.in

91 99 68

答案文件(test10.out

1

用户输出

1

系统信息

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

输入文件(test11.in

97 50 58

答案文件(test11.out

3

用户输出

3

系统信息

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

输入文件(test12.in

96 43 25

答案文件(test12.out

-1

用户输出

-1

系统信息

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

输入文件(test13.in

84 89 60

答案文件(test13.out

2

用户输出

2

系统信息

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

输入文件(test14.in

84 72 52

答案文件(test14.out

3

用户输出

3

系统信息

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

输入文件(test15.in

83 91 89

答案文件(test15.out

1

用户输出

1

系统信息

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

输入文件(test16.in

98 65 73

答案文件(test16.out

2

用户输出

2

系统信息

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

输入文件(test17.in

80 100 90

答案文件(test17.out

-1

用户输出

-1

系统信息

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

输入文件(test18.in

100 40 90

答案文件(test18.out

-1

用户输出

-1

系统信息

Exited with return code 0