3 条题解
-
0
Guest
-
0
//洛谷上加了注释: //本题存在精度误差问题,请将 a * 0.7 + b * 0.3 与 80 比较 转化为 a * 7 + b * 3 与 800 比较。 #include<bits/stdc++.h> using namespace std; struct student { char xuehao[10010]; double sor7; double sor3; }; int main() { student a; int m; cin>>m; for(int i=1;i<=m;i++) { cin>>a.xuehao; cin>>a.sor7; cin>>a.sor3; if(a.sor3*3+a.sor7*7>=800&&a.sor3+a.sor7>140) cout<<"Excellent"<<'\n'; else cout<<"Not excellent"<<'\n'; } return 0; }
信息
- ID
- 228
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 8
- 标签
- 递交数
- 59
- 已通过
- 9
- 上传者