Max_Wgj @ 2024-05-18 15:23:23
#include <bits/stdc++.h>
using namespace std;
int main() {
long double a, b, c, d, e, f, g, h, i, j, n = 0;
cin >> a >> b >> c >> d >> e >> f >> g >> h >> i >> j ;
n = a * 28.9 + b * 32.7 + c * 45.6 + d * 78 + e * 35 + f * 86.2 + g * 27.8 + h * 43 + i * 56 +j * 65;
cout<<n;
}
by Justin_love_coding @ 2024-05-18 15:38:47
cout改成printf("%.1lf", n);吧
by lsh_love_luogu @ 2024-06-07 20:20:14
可以用一维数组
by lsh_love_luogu @ 2024-06-07 20:27:19
@Justin_love_coding 两种输入输出不能混用!!! (用了就WA)
by Justin_love_coding @ 2024-06-09 19:01:48
@lsh1234546 谁告诉你的???关闭同步才不能用,正常情况可以混用
by lsh_love_luogu @ 2024-06-12 18:17:02
@Justin_love_coding 我老师。。。。。 (膜拜大神)
by lsh_love_luogu @ 2024-07-10 09:47:53
@Justin_love_coding 想了想,如果你在CTSC的赛场上,你会混用吗?