摘要:
CF Problem - 982C - Codeforces(搜索)(dfs) 找最大删除边数,使得每一棵树的顶点数都为偶数 #include <bits/stdc++.h> using namespace std; #define LL long long const LL mod = 99824 阅读全文
摘要:
CF Problem - 1418C - Codeforces(dp+贪心好题!)(1500) dp操作,要分开判断先手和后手 #include <bits/stdc++.h> using namespace std; #define LL long long const LL mod = 9982 阅读全文
摘要:
CF Problem - 839C - Codeforces(DFS)(1500)(期望) 求期望dp 即求1的(所有孩子的期望+1)的和,除以孩子数量 #include <bits/stdc++.h> using namespace std; #define LL long long const 阅读全文
摘要:
1.Problem - 1881E - Codeforces(1500)(dp) dp好题 #include <bits/stdc++.h> using namespace std; #define LL long long const LL mod = 998244353; const int N 阅读全文
摘要:
CF Problem - 1084C - Codeforces 简单题,算每一块中a的数量,对于每一块,有选0,1,2……,k种,k+1种选法 #include <bits/stdc++.h> using namespace std; #define LL long long const LL mo 阅读全文