首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

water~四

2012-10-28 
water~4poj1004http://poj.org/problem?id1004super water#include iostreamusing namespace stdint m

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

热点排行