您的位置:首页 > 其它

POJ 1004 Financial Management

2013-01-30 23:58 363 查看
题目:http://poj.org/problem?id=1004

水题

#include <iostream>
#include <stdio.h>
#include <algorithm>
#include <string>
#include <string.h>
#include <cstdlib>

using namespace std;

int main()
{
float total=0;
for(int i=0;i<12;i++)
{
float t;
cin>>t;
total+=t;
}
printf("$%.2f",total/12.0);
return 0;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: