60分 求助

B3795 [NICA #1] 成绩

@[gaoyuchen929sm](/user/1296064) on line 8 题目:传统型:**不超过**一门低于 60 分,就属于及格 所以line 8的 ```cpp if(a>60 || b>60 || c>60) ``` 应改为 ```cpp if(a >= 60 && c >= 60 || a >= 60 && b >= 60 || b >= 60 && c >= 60) ``` _完整AC代码:_ ```cpp #include <bits/stdc++.h> #define int long long using namespace std; double a,b,c; double a1,b1,c1; signed main(){ ios_base :: sync_with_stdio(false); cin.tie(NULL); cin >> a >> b >> c; cin >> a1 >> b1 >> c1; if(a >= 60 && c >= 60 || a >= 60 && b >= 60 || b >= 60 && c >= 60){ cout << "PASS" << endl; } else{ cout << "FAIL" << endl; } if((a * a1 + b * b1 + c * c1) * 1.0 / (a1 + b1 + c1) >= 60){ cout << "PASS" << endl; } else{ cout << "FAIL" << endl; } return 0; } ```
by Zhaozimo1207 @ 2024-06-01 18:01:15


@[gaoyuchen929sm](/user/1296064) 能不能给个关
by Zhaozimo1207 @ 2024-06-01 18:01:55


@[Zhaozimo1207](/user/965109) 谢谢大佬指点 关啦
by gaoyuchen929sm @ 2024-06-02 20:28:39


|