| ||||||||||
| 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 | |||||||||
帮我看下那里错的。。。。。#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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator