| ||||||||||
| 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 | |||||||||
Re:为什么老是WA啊?请教各位In Reply To:为什么老是WA啊?请教各位 Posted by:Royalw at 2009-02-15 11:43:56 > #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;
> }
要考虑输入T D和T H 还有D H的情况啊
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator