首页 > TAG信息列表 > AGC051D

2022.7.19 AGC051D

AGC051D C4 考虑给每条边定向,然后就是欧拉回路计数,套 \(\text{best}\) 定理即可。 #include<bits/stdc++.h> using namespace std; #define inf 1e9 const int maxn=1e6+10; const int mod=998244353; inline int read(){ int x=0,f=1;char c=getchar(); while(c<'0'||c>