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 |
里面有个sqrt(3)的……In Reply To:是像这样吗?WA5次了 Posted by:ning at 2006-01-09 19:20:44 > /*pku 2666 Back to Mother Ship 060109 wa*/ > #include<stdio.h> > #include<math.h> > int main() > { > double u,a,d,_rst; > long rst; > for(;scanf("%lf%lf%lf",&u,&a,&d);) > { > if((u==0)&&(a==0)&&(d==0)) > return 1; > _rst=( d-exp(a/180*M_PI) )/u; > rst=(long)(_rst+.5); > if(rst>10000) > printf("God help me!\n"); > else > printf("%ld\n",rst); > } > } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator