#include #include #include using namespace std; int n(int a,int b){ if(a==b) return 1; if(a>T; while(T--){ cin>>a>>b; cout<