摘要: A #include <bits/stdc++.h> using namespace std; int main() { puts("All in!"); return 0; } B #include <bits/stdc++.h> using namespace std; int T, n, m, 阅读全文
posted @ 2022-01-26 23:20 Angels_of_Death 阅读(290) 评论(0) 推荐(0)
摘要: 黑白染色模板题 首先通过DFS缩点,将所有相同状态的连通块缩成一个点 之后枚举每一个点进行BFS,计算变成最终状态的最小值 #include<bits/stdc++.h> using namespace std; const int N = 50, M = 2500; int T, n, m, cn 阅读全文
posted @ 2022-01-26 09:48 Angels_of_Death 阅读(35) 评论(0) 推荐(0)
摘要: $f[A][B][C][D][X][Y]$表示当前由A张红桃,B张黑桃,C张梅花,D张方片,且小王的状态为X,大王的状态为Y的情况的期望的最小值 此时可以通过枚举每一个变量的状态得到状态转移 #include <bits/stdc++.h> using namespace std; const in 阅读全文
posted @ 2022-01-26 09:40 Angels_of_Death 阅读(33) 评论(0) 推荐(0)