不太理解的代码
# include <math.h># include <stdio.h>
main()
{
long i,j,swap,k;
int mark;
while(scanf("%ld%ld",&i,&j)==2) -------?
{
if(i == j) {printf("1\n");continue;} -------?
if(i>j)
{
swap = j;
j = i;
i = swap;
}
k = j - i;
mark =(int) (k*(1.0+sqrt(5))/2.0 );
if(i==mark)printf("0\n");
else printf("1\n");
}
return 0;
}
看不懂这个程序的目的!请路过的朋友指教.