Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
4663 邓小龙 财务管理 C++ Wrong Answer 0 MS 264 KB 289 2024-09-06 20:41:28

Tests(0/1):


Code:

# include<iostream> # include<iomanip> using namespace std; int main(){ double m,s=0;//m为每月的工资,s为累加器,求12个月工资总和 for(int i=1;i<=12;i++){ cin>>m; s+=m; } cout<<fixed<<setprecision(2)<<s/12<<endl; return 0; }


Run Info:

------Input------
12345.12 12434.45 42524.56 86342.11 23436.67 75443.45 43565.90 54342.00 11111.33 34365.09 12231.32 21344.65
------Answer-----
¥35790.55
------Your output-----
35790.55