Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
77294 sh25_shenpy 计算书费 C++ 通过 0 MS 248 KB 278 2025-12-21 21:27:02

Tests(1/1):


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


测评信息: