Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
97302 | Yah123 | 财务管理 | C++ | Accepted | 1 MS | 272 KB | 260 | 2024-11-12 18:01:35 |
#include<iostream> #include<iomanip> using namespace std; int main(){ float total,a,i,ava; total = 0; for(i=0;i<12;i++){ cin>>a; total+=a; } ava = total/12; cout<<"¥"<<setiosflags(ios::fixed)<<setprecision(2)<<ava<<endl; return 0; }