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