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

帮我看下那里错的。。。。。

Posted by hello_cc at 2010-11-23 22:24:49 on Problem 1067
#include<stdio.h>
//#include<stdlib.h>
#include<math.h>

int main()
{
    int m,n;
    scanf("%d%d",&m,&n);    
    if(m>n)
    {
        int temp;
        temp=m;
        m=n;
        n=temp;
    }
    double t=(sqrt(5.0)+1.0)/2.0;
    int c=floor((n-m)*t);
    if(c==m)printf("0\n");
    else printf("1\n");
    //system("PAUSE");
    return 0;
}




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