原题:http://acm.hdu.edu.cn/showproblem.php?pid=1527
#include<iostream>
#include<cmath>
using namespace std;
int a, b;
int main(){
while(cin>>a>>b){
int k = abs(a-b);
double tmp = (sqrt(5)+1)/2.0;
int n = k*tmp;
if(n == min(a, b)) cout<<"0"<<endl;
else cout<<"1"<<endl;
}
return 0;
}