#include using namespace std; using ll = long long; const ll INF = 1ll << 60; #define REP(i, n) for(ll i =0; i < ll(n); i++) template using V = vector; template bool chmax(A& a, B b) { return a bool chmin(A& a, B b) { return b> n >> m; REP(_, m) { int a, b; cin >> a >> b; if(a < b) cout << 0 << endl; else cout << 1 << endl; } } int main() { // cin.tie(0)->sync_with_stdio(0); testcase(); }