View Code of Problem 197

#include<iostream>
#include<math.h>
using namespace std;
int main(){
	int a,b;
	while(cin>>a>>b){
	if(floor(abs(b-a)*1.618033)==min(a,b))
		cout<<'0'<<endl;
	else
		cout<<'1'<<endl;
	}
}

Double click to view unformatted code.


Back to problem 197