摘要: Codeforces Round 875 (Div. 2) A - Twin Permutations 思路:让序列全相等为n+1即可 #include<bits/stdc++.h> using namespace std; typedef pair<int,int>PII; typedef pai 阅读全文
posted @ 2023-07-14 19:25 bible_w 阅读(7) 评论(0) 推荐(0) 编辑
摘要: Codeforces Round 884 (Div. 1 + Div. 2) A - Subtraction Game 思路:显而易见为a+b #include<bits/stdc++.h> using namespace std; #define int long long typedef pai 阅读全文
posted @ 2023-07-14 19:25 bible_w 阅读(7) 评论(0) 推荐(0) 编辑
摘要: SMU Summer 2023 Contest Round 2 A - Treasure Hunt 思路:判断 Δx 和 Δy 能否分别整除 x 和 y ,求出需要的步数,两者的步数须同奇或同偶 #include<bits/stdc++.h> using namespace std; //#defi 阅读全文
posted @ 2023-07-14 19:25 bible_w 阅读(1) 评论(0) 推荐(0) 编辑
摘要: SMU Summer 2023 Contest Round 1 A - The Contest 思路:求出最短解决问题总时间,在所有区间找出大于等于总时间的最短时刻。 #include<bits/stdc++.h> using namespace std; #define int long long 阅读全文
posted @ 2023-07-14 19:25 bible_w 阅读(3) 评论(0) 推荐(0) 编辑
摘要: SMU Summer 2023 Contest Round 3 A - Curriculum Vitae 思路:要求0后不能有1,当某个数都不删时,值为前面所有的0的个数加后面所有1的个数,求出最大即可 #include<bits/stdc++.h> using namespace std; #de 阅读全文
posted @ 2023-07-14 19:25 bible_w 阅读(6) 评论(0) 推荐(0) 编辑