#include<bits/stdc++.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; } } /* Main.cc:2:24: bits/stdc++.h: No such file or directory Main.cc: In function `int main()': Main.cc:6: error: `cin' undeclared (first use this function) Main.cc:6: error: (Each undeclared identifier is reported only once for each function it appears in.) Main.cc:7: error: `abs' undeclared (first use this function) Main.cc:7: error: `floor' undeclared (first use this function) Main.cc:7: error: `min' undeclared (first use this function) Main.cc:8: error: `cout' undeclared (first use this function) Main.cc:8: error: `endl' undeclared (first use this function) */ |
Double click to view unformatted code.