Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
为什么老是WA啊?请教各位#include<iostream> #include<iomanip> #include<math.h> using namespace std; int main() { char a,b; double d1,d2,d3,d4,d5; while((cin>>a)&&(a!='E')) { cin>>d1>>b>>d2; d3=6.11*exp(5417.7530*((1/273.16)-(1/(d2+273.16)))); d4=0.5555*(d3-10.0); d5=d1+d4; cout<<'T'<<' '<<d1<<" "<<'D'<<' '<<d2<<" "<<'H'<<' '<<setiosflags(ios::fixed)<<setprecision(1)<<d5<<endl; } return 0; } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator