| ||||||||||
| 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 | |||||||||
WA得好惨,我直到现在还没AC,不知道是思路错了还是什么原因。附WA代码,望大家引以为戒#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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator