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

是像这样吗?WA5次了

Posted by ning at 2006-01-09 19:20:44 on Problem 2666
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:
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