救救我吧
by jinxuanyi @ 2024-08-18 09:33:30
~~佬大~~
by jinxuanyi @ 2024-08-18 09:34:51
@[jinxuanyi](/user/1019649) 题号多少
by lihaoran2012 @ 2024-08-18 09:35:17
@[jinxuanyi](/user/1019649) 题目写不超过一门低于60 就是说可以一门低于60
by liaocr @ 2024-08-18 09:36:04
按你这程序,$a+b+c$应该 $ \ge $ 130才对
@[jinxuanyi](/user/1019649)
by medal_dreams @ 2024-08-18 09:38:43
@[jinxuanyi](/user/1019649)
~~猜你想要~~
```cpp
#include<bits/stdc++.h>
using namespace std;
int a[3],d,e,f;
int main()
{
int cnt;
cin>>a[0]>>a[1]>>a[2]>>d>>e>>f;
for(int i=0;i<3;i++)
{
if(a[i]<60)
{
cnt++;
}
}
if(cnt<=1)cout<<"PASS"<<endl;
else cout<<"FAIL"<<endl;
if((a[0]*d+a[1]*e+a[2]*f)/(d+e+f)<60)cout<<"FAIL";
else cout<<"PASS";
return 0;
}
```
by _Constantine_ @ 2024-08-18 09:40:16
@[jinxuanyi](/user/1019649) ~~不是,你谷怎么这么多村里人~~
by _Constantine_ @ 2024-08-18 09:41:36
@[jinxuanyi](/user/1019649) 第6行: `n=(a*d+c*e+c*f)*1.0/(d+e+f); `
by liujunyi1234 @ 2024-08-18 09:41:59
@[jinxuanyi](/user/1019649) ~~无耻求关~~
by _Constantine_ @ 2024-08-18 09:43:44
不过任何数基本都能凑出130啊,还是一个个判断吧
至于
```cpp
n=(a*d+c*e+c*f)/(d+e+f)*1.0;
```
不应该是$n=(a*d+b*e+c*f)/(d+e+f)$吗
你这b打成c了,怪不得过不了
by medal_dreams @ 2024-08-18 09:45:11