题目链接
http://poj.org/problem?id=1004
题解
这么长一串题,结果就求平均数而已。
代码
#include<iostream>
#include<algorithm>
#include<stdio.h>
using namespace std;
double ans,now;
int main()
{
for (int i=1;i<=12;i++)
cin>>now,ans+=now;
ans=ans/12.0;
cout<<"$"<<ans<<endl;
}