@[linchenyu123](/user/1016616) 你简化干啥?
by OldDriverTree @ 2023-08-22 11:55:39
@[linchenyu123](/user/1016616)
```cpp
#include<iostream>
using namespace std;
int main()
{
double a,b,c;
cin>>a>>b>>c;
cout<<(int)(a*20.0/100+b*30.0/100+c*50.0/100)<<endl;
return 0;
}
```
这样算吗(
by _空白_ @ 2023-08-22 12:12:52
@[linchenyu123](/user/1016616) 对呀你简化干啥干嘛,现在代码挺好的鹅。
by NPH_Zhao @ 2023-08-22 12:18:45
@[linchenyu123](/user/1016616)
```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:44:28
```
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
cout<<a*0.2+b*0.3+c*0.5;
return 0;
}
```
by xiezi @ 2023-10-04 18:47:38
```
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
cout<<a*0.2+b*0.3+c*0.5;
return 0;
}
```
用万能头吧
by zwh66918 @ 2023-10-05 11:17:10
我不信有比我更简的
我把return都删了,照样过
```
#include<iostream>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
cout<<a*0.2+b*0.3+c*0.5;
}
```
by flh2011 @ 2023-10-27 21:41:06
此为最简
by ouxiyao @ 2023-10-31 20:22:36
@[ouxiyao](/user/1155764)
# NO
```
#include<iostream>
int main(){
int a,b,c;
std::cin >> a >> b >> c;
std::cout << a*0.2 << b*0.3 << c*0.5}
```
by zhaoqifeng @ 2023-11-20 17:25:04
@[zhaoqifeng](/user/1054635)
## BUT..
```c
#include<bits/stdc++.h>
using namespace std;int main(){int a,b,c;cin>>a>>b>>c;cout<<a*0.2+b*0.3+c*0.5;}
```
by 08290177ty @ 2023-11-21 19:46:15