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:
parent
1325b02fff
commit
900ad6a48a
20
problem/P5742/P5742.cpp
Normal file
20
problem/P5742/P5742.cpp
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user