整数过不去吗

P3954 [NOIP2017 普及组] 成绩

``` #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 Leo2020 @ 2021-06-25 10:41:53


`double`:我是干嘛的
by ZBAA_MKC @ 2021-06-25 11:43:06


double:小丑竟是我自己! float:你抢我台词
by hjl_AK_IOI @ 2021-07-01 21:38:55


把int改成double吧。
by litto1 @ 2022-06-22 22:07:39


用int也可以过
by we_ee @ 2022-08-15 11:23:50


int过得去啊。 ~~压行代码(2行):~~ ```cpp #include <iostream> int main() { int A, B, C, D; std::cout << (D = (std::cin >> A >> B >> C, A * 0.2 + B * 0.3 + C * 0.5)); } ```
by int_stl @ 2022-12-28 11:21:30


|