读书人

water~四

发布时间: 2012-10-28 09:54:44 作者: rapoo

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;}

读书人网 >编程

热点推荐