6 solutions
-
2
#include<bits/stdc++.h> using namespace std; double a1,a2,a3,a4,a5,a6,a7,a8,a9,a10; double sum=0; int main(){ cin>>a1>>a2>>a3>>a4>>a5>>a6>>a7>>a8>>a9>>a10; sum=a1*28.9+a2*32.7+a3*45.6+a4*78+a5*35+a6*86.2+a7*27.8+a8*43+a9*56+a10*65; cout<<fixed<<setprecision(1)<<sum<<endl; return 0; }
朴实无华
-
0
#include <iostream> using namespace std; int main(){ double a , b , c , d , e , f , g , h , i , j; cin >> a >> b >> c >> d >> e >> f >> g >> h >> i >> j; a = 28.9 * a; b = 32.7 * b; c = c * 45.6; d = d * 78; e = e * 35; f = f * 86.2; g = g * 27.8; h = h * 43; i = i * 56; j = j * 65; double y = a + b + c + d + e+ f+g +h+i+j; printf("%.1lf" , y); return 0; }
- 1
Information
- ID
- 590
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 1
- Tags
- # Submissions
- 33
- Accepted
- 28
- Uploaded By