Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

为什么老是WA啊?请教各位

Posted by Royalw at 2009-02-15 11:43:56 on Problem 3299
#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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator