12 2021 档案

摘要:题目 D. Stoned Game 分析 如果最大的一堆大于其余所有之和,那么先手必胜,否则根据奇偶来判断 代码 #include<bits/stdc++.h> using namespace std; const int N=2e5+10; int a[N]; int main() { int t 阅读全文
posted @ 2021-12-31 15:46 m_rd 阅读(42) 评论(0) 推荐(0)
摘要:1.序列 题意 分析 代码 #include<bits/stdc++.h> using namespace std; const int N=2e5+10; int a[N],b[N],c[N]; int m,n; void divide(int a[ ],int b[ ]) { priority_ 阅读全文
posted @ 2021-12-31 14:51 m_rd 阅读(49) 评论(0) 推荐(0)
摘要:题号 题目 知识点 题解链接 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 阅读全文
posted @ 2021-12-13 12:45 m_rd 阅读(52) 评论(0) 推荐(0)
摘要:小A的卡牌游戏 题意 汉语自己分析 分析 先按照b-a排个序,贪心然后DP 代码 /*made in mrd*/ #include<bits/stdc++.h> using namespace std; const int N=2e5+10; #define int long long #defin 阅读全文
posted @ 2021-12-13 11:31 m_rd 阅读(45) 评论(0) 推荐(0)