M-SOLUTIONS Programming Contest 2021(AtCoder Beginner Contest 232)E - Rook Path
#includeusingnamespacestd;constintN=1e6+10;constintmod=998244353;longlongf[N][2][2];inth,w,k;intx1,x2,y1,y2;intmain(){cin>>h>>w>>k;cin>>x1>>y1>>x2>>y2;intk1=0,k2=0;if(x1==x2)k1=1;if(y1==y2)k2=1;f[0][k