```cpp
#include<bits/stdc++.h>
using namespace std;
int z,x,q;
double zh;
int main()
{
scanf("%d%d%d",&z,&x,&q);
if(z<=100 || x<=100 || q<=100)
{
zh=(int)(z*0.2+x*0.3+q*0.5);
cout<<zh;
};
return 0;
}
```
把if(z>=100 || x>=100 || q>=100)改成if(z<=100 || x<=100 || q<=100)就好了
by gzy0215 @ 2023-08-17 16:05:39
@[gjm123456](/user/522406)
```cpp
#include<bits/stdc++.h>
using namespace std;
int main(){
double h,m,e;
cin>>h>>m>>e;
cout<<h*20.0/100+m*30.0/100+e*50.0/100;
}
```
by lsl158 @ 2023-08-29 22:54:50
谢谢了,各位大佬!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
by gjm123456 @ 2023-08-30 14:18:58
是<=不是>=
by XingChen_MoNian @ 2023-11-02 21:39:49
@[gjm123456](/user/522406)
弄那么麻烦干嘛
```cpp
#include<bits/stdc++.h>
using namespace std;
int a,b,c;
int s;
int main()
{
cin>>a>>b>>c;
s=a*20/100+b*30/100+c*50/100;
cout<<s;
}
```
by caojinyu0518 @ 2024-02-17 18:14:28