摘要:
【BZOJ4025】二分图(线段树分治,并查集) 题面 "BZOJ" 题解 是一个二分图,等价于不存在奇环。 那么直接线段树分治,用并查集维护到达根节点的距离,只计算就好了。 cpp include include include include include include include us 阅读全文
摘要:
【BZOJ1022】小约翰的游戏(博弈论) 题面 "BZOJ" 题解 $Anti SG$游戏的模板题目。 cpp include include include include include include using namespace std; define ll long long defi 阅读全文
摘要:
题面 "HDU1527 取石子游戏" "洛谷2252 取石子游戏" 题解 裸的威佐夫博弈 cpp include include using namespace std; const double phi=(sqrt(5)+1)/2; int a,b; int main() { ios::sync_ 阅读全文
摘要:
题面 "HDU" 题解 $Bash\ Game$模板题 cpp include using namespace std; int T,n,m; int main() { ios::sync_with_stdio(false); cin T; while(T ) { cin n m; if(n%(m+ 阅读全文