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得好惨,我直到现在还没AC,不知道是思路错了还是什么原因。附WA代码,望大家引以为戒

Posted by 120302508 at 2014-01-31 22:26:15 on Problem 2006
#include <stdio.h>
#include <math.h>

int main()
{
	int m,n;
	double h,ka,acid;
	while(~scanf("%lf%lf%d%d",&ka,&acid,&m,&n)&&(ka||acid||m||n))
	{
		h=(sqrt(ka*ka+4*ka*m*n*acid)-ka)/(2*n);
		printf("%.3lf\n",-log10(h));
	}
	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