Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
84682 sh25_chenyj 计算书费 C++ 通过 0 MS 248 KB 380 2026-02-19 11:48:04

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main() { double cnt = 0; double ls1[10]; double ls2[10] = {28.9, 32.7, 45.6, 78, 35, 86.2, 27.8, 43, 56, 65}; // cout << fixed << setprecision(10) << ce(a); for(int i = 0; i < 10; i++){ int a; cin>>a; ls1[i] = a; } for(int i = 0; i<10; i++){ cnt += ls1[i] * ls2[i]; } cout<<cnt; return 0; }


测评信息: