Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
51567 | 张思存 | 计算书费 | C++ | Compile Error | 0 MS | 0 KB | 300 | 2024-09-22 18:08:14 |
#include<bits/stdc++.h> using namespace std; int main() { double manei=0; int a[10]; double b[10]={28.9,32.7,45.6,78,35,86.2,27.8,43,56,65}; for(i=0;i<10;i++){ cin>>a[i];} for(i=0;i<10;i++){ manei+=a[i]*b[i];} cout<<fixed<<setprecision(1)<<manei; }