#include<iostream> #include<cstdio> #include<cstring> #include<algorithm> #include<cmath> using namespace std; int main() { int a,b; while(~scanf("%d%d",&a,&b)) { int ok=1; if(a>b) swap(a,b); int k=b-a; int ak=floor(k*(sqrt(5.0)+1)/2); if(a==ak) ok=0; printf("%d\n",ok); } return 0; }
时间: 2024-10-05 04:45:19