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 |
是像这样吗?WA5次了In Reply To:积分 Posted by:mixter at 2005-10-29 20:38:17 /*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