#include <bits/stdc++.h>
using namespace std;
int main() {
int t;
cin >> t;
while (t--) {
int a, b;
cin >> a >> b;
if (a == b) cout << 0 << endl;
else cout << 1 + int((a < b) ^ ((b - a) & 1)) << endl;
}
return 0;
}
please someone describe the above statement.how this statement works and what is the result of this statement. this code is snippet from codeforces. link:https://codeforces.com/blog/entry/74224