#include #include using namespace std; using namespace atcoder; using mint=modint998244353; long long H,W,Q; vector nCr; int comb(int r){ if(r<0||H+W> H >> W >> Q; nCr.resize(H+W+1); nCr[0]=1; for(int i=1;i> t; mint ans=0; if(t*(H+t-W)>0){ if(0