Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
4664 | 邓小龙 | 财务管理 | C++ | Accepted | 0 MS | 264 KB | 296 | 2024-09-06 20:42:14 |
# 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; }