上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页
摘要: Codeforces Round 885 (Div. 2) A - Vika and Her Friends 思路:移动后再判断,所以距离为奇数时朋友永远抓不到她 #include<bits/stdc++.h> using namespace std; #define int long long t 阅读全文
posted @ 2023-07-18 10:44 bible_w 阅读(30) 评论(0) 推荐(0) 编辑
摘要: SMU Summer 2023 Contest Round 4 A - Telephone Number 思路:满足有8,且8后有大于等于11个数 #include<bits/stdc++.h> using namespace std; #define int long long typedef p 阅读全文
posted @ 2023-07-17 20:03 bible_w 阅读(15) 评论(0) 推荐(0) 编辑
摘要: (AtCoder Beginner Contest 310) A - Order Something Else 思路:比较下打折和不打折的情况 #include<bits/stdc++.h> using namespace std; #define int long long typedef pai 阅读全文
posted @ 2023-07-16 14:39 bible_w 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(9) 评论(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 阅读(9) 评论(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 阅读(5) 评论(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 阅读(6) 评论(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 阅读(11) 评论(0) 推荐(0) 编辑
摘要: Codeforces Round 874 (Div. 3) A - Musical Puzzle 思路:记录两个长度字符串的种数 #include<bits/stdc++.h> using namespace std; typedef pair<int,int>PII; typedef pair<s 阅读全文
posted @ 2023-05-26 09:54 bible_w 阅读(64) 评论(0) 推荐(0) 编辑
摘要: Educational Codeforces Round 149 (Rated for Div. 2) A - Grasshopper on a Line 思路:只有两种情况,x整除k时为x-1和1,否则为x void solve() { int x, k; cin >> x >> k; if (x 阅读全文
posted @ 2023-05-26 08:49 bible_w 阅读(141) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页