平面图完美匹配计数——(这个叫)FKT算法(Fast Kasteleyns technique?)【求1*2多米诺骨牌铺格子的(博主)已知最快算法】
唐老师的博客[n#defineEBemplace_backtypedeflonglongll;typedefstd::vectorvector;constintN=5000,M=66666,mod=998244353;structedge{intu,v;edge(intu0=0,intv0=0):u(u0),v(v0){}}e[M];intR,C,V,E=0;intp[N],mat[N][N],e