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

Re:WA得好惨,我直到现在还没AC,不知道是思路错了还是什么原因。附WA代码,望大家引以为戒

Posted by 120302508 at 2014-02-01 13:28:36 on Problem 2006
In Reply To:WA得好惨,我直到现在还没AC,不知道是思路错了还是什么原因。附WA代码,望大家引以为戒 Posted by:120302508 at 2014-01-31 22:26:15
#include <stdio.h>
#include <math.h>
int main()
{
	int m,n;
	double ka,acid;
	while(scanf("%lf%lf%d%d",&ka,&acid,&m,&n),n)
		printf("%.3lf\n",-log10((sqrt(ka*ka+4*ka*m*n*acid)-ka)/(2*n)));
	return 0;
}
//快吐了,我在本地明明是gcc a.c -lm编译的,提交的时候语言选择gcc就过不了,选择C就过了

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