#include <iostream>
using namespace std;
int main(){
float a,s=0;
for(;cin>>a;s+=a);
printf("$%.2f\n",s/12.);
return 0;
}
Saturday, 21 March 2009
POJ ( acm.pku.edu.cn ) 1004
Subscribe to:
Post Comments (Atom)
我爱水题,爱死水题了。
#include <iostream>
using namespace std;
int main(){
float a,s=0;
for(;cin>>a;s+=a);
printf("$%.2f\n",s/12.);
return 0;
}
No comments:
Post a Comment