| ||||||||||
| 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 | |||||||||
帮我看看这怎么回事的 Output Limit Exceeded#include<stdio.h>
#include<math.h>
void main()
{
while(1)
{
int i,n,m,a,b,t;
scanf("%d %d",&n,&m);
if(n>m)
{
t=n;
n=m;
m=t;
}
i=m-n;
a=(i*(1+sqrt(5))/2);
b=a+i;
if(a==n&&b==m)
printf("%d\n",0);
else printf("%d\n",1);
}
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator