摘要:
题目 D. Stoned Game 分析 如果最大的一堆大于其余所有之和,那么先手必胜,否则根据奇偶来判断 代码 #include<bits/stdc++.h> using namespace std; const int N=2e5+10; int a[N]; int main() { int t 阅读全文
摘要:
题号 题目 知识点 题解链接 1610D D. Not Quite Lee DP 裴蜀定理 gcd https://www.cnblogs.com/mrd-T/p/15607426.html 1613D D. MEX Sequences DP 思维 132 1614D D2. Divan and K 阅读全文
摘要:
小A的卡牌游戏 题意 汉语自己分析 分析 先按照b-a排个序,贪心然后DP 代码 /*made in mrd*/ #include<bits/stdc++.h> using namespace std; const int N=2e5+10; #define int long long #defin 阅读全文
摘要:
题目 题意 让你找有多少个子序列加起来为0 分析 代码 #include<bits/stdc++.h> using namespace std; int n,m; #define int long long const int N=2e5+10; int a[N]; int mod=1e9+7; i 阅读全文