`
Midnight0101
  • 浏览: 15913 次
  • 性别: Icon_minigender_1
  • 来自: 天津
最近访客 更多访客>>
社区版块
存档分类
最新评论

water~4

阅读更多
poj1004http://poj.org/problem?id=1004
super water
#include <iostream>
using namespace std;

int main()
{
	double ans=0;

	for(int i=0;i<12;i++)
	{
		double temp;
		cin>>temp;
		ans+=temp;		
	}
	ans/=12;

	cout.setf(ios_base::fixed);
	cout.setf(ios_base::showpoint);
	cout.precision(2);

	cout<<"$"<<ans<<endl;
	return 0;
}

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics