#include using namespace std; #define int long long const int N=2e5+10,mod=998244353,s=sqrt(N); int t,n,m,fac[N],ny[N],ans[N],x,y,sum; int ksm(int xx,int yy){ int an=1,p=xx; while(yy){ if(yy&1)an*=p; an%=mod; p*=p; p%=mod; yy>>=1; } return an; } int C(int xx,int yy){ if(xxq[i].y){ dely(); } while(x>q[i].x){ delx(); } while(y