0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-24 03:31:59 +00:00

P5742 【深基7.例11】评等级

R38780150
This commit is contained in:
Baoshuo Ren 2020-09-23 19:08:31 +08:00 committed by Baoshuo Ren
parent 1325b02fff
commit 900ad6a48a
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

20
problem/P5742/P5742.cpp Normal file
View File

@ -0,0 +1,20 @@
// R38780150
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, s, tmp;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> tmp >> x >> s;
if (x + s > 140 && x * 0.7 + s * 0.3 >= 80) {
cout << "Excellent" << endl;
}
else {
cout << "Not excellent" << endl;
}
}
return 0;
}