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:AC代码,作为参考,其实挺水的

Posted by 771385494 at 2011-10-22 20:26:15 on Problem 2006
In Reply To:AC代码,作为参考,其实挺水的 Posted by:994487586 at 2011-07-21 01:02:39
> #include <stdio.h>
> #include <math.h>
> 
> double ka;
> double acid;
> double res;
> double temp, delta;
> int m, n;
> 
> int main()
> {
> 	scanf("%lf%lf%d%d", &ka, &acid, &m, &n);
> 	while(ka && acid && m && n)
> 	{
> 		delta = sqrt(ka * ka+4 * n * acid * ka * m);
>         temp = (-ka + delta) / (2 * n);
>         res = -log10(temp);
>         printf("%.3lf\n",res);
> 		scanf("%lf%lf%d%d", &ka, &acid, &m, &n);
> 	}
> 	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