1 条题解
-
0
#include <bits/stdc++.h> using namespace std; struct student { string name; int a, b, score; }; void excellent() { student s; cin>>s.name>>s.a>>s.b; s.score = s.a * 7 + s.b * 3; if(s.a + s.b > 140 & s.score >= 800) { cout<<"Excellent"<<endl; } else { cout<<"Not excellent"<<endl; } return; } int main() { int n; cin>>n; for (int i = 0; i < n; i++) { excellent(); } return 0; }
信息
- ID
- 939
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 9
- 标签
- (无)
- 递交数
- 13
- 已通过
- 5
- 上传者