Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
101776 房知谦 财务管理 C++ Accepted 1 MS 272 KB 424 2024-12-18 19:37:16

Tests(1/1):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int i; float p; float u=0; for(int i=1;i<=12;i++){ cin>>p; u=u+p; } cout<<"¥"; printf("%.2f",u/12); return 0; }