#include using namespace std; inline long long read(){ long long x=0; char ch; bool f=0; while(((ch=getchar())<'0'||ch>'9')&&ch!='-') ; if(ch=='-') f=1; else x=ch^48; while((ch=getchar())>='0'&&ch<='9') x=(x<<1)+(x<<3)+(ch^48); return f?-x:x; } #define ll long long const int N=2e5+5,mod=998244353,B=447; const ll inv2=(mod+1)/2; ll jc[2][N],pw[N],ans[N]; int bl[N]; void re(){ jc[0][0]=jc[0][1]=jc[1][0]=jc[1][1]=1; for(int i=2;is[i].m){ S=S-C(l,r); S%=mod; r--; } while(ls[i].n){ l--; S=S+C(l,r),S=S*inv2%mod; } // cerr<