@[WEICY123](/user/1170968) `if(a+b+c>=60)cout<<"PASS"<<endl;`错了,题目说是不超过一门低于60,你写成三门总分不低于60了
by hyh0174 @ 2024-05-28 21:59:55
```
#include<bits/stdc++.h>
using namespace std;
int a,b,c,d,e,f;
int main(){
cin>>a>>b>>c>>d>>e>>f;
if(a>=60&&b>=60&&c>=60)cout<<"PASS"<<endl;
else if(a<60||b<60||c<60)cout<<"FAIL"<<endl;
if((a*d+b*e+c*f)/(d+e+f)>=60)cout<<"PASS";
else cout<<"FAIL";
}
```
@[hyh0174](/user/439949) 90分
by WEICY123 @ 2024-05-29 11:35:36
@[WEICY123](/user/1170968) 你这个是三门均不低于60,题目中是最多一门低于60
by hyh0174 @ 2024-05-29 21:20:25
@[hyh0174](/user/439949) 已AC感谢
by WEICY123 @ 2024-05-29 21:29:06