上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页
摘要: 23暑假友谊赛 马猴烧酒 思路:枚举对行的所有可能操作,判断列需要的操作次数是否满足条件; #include<bits/stdc++.h> using namespace std; #define int long long typedef pair<int,int>PII; typedef pai 阅读全文
posted @ 2023-07-20 10:14 bible_w 阅读(8) 评论(0) 推荐(0)
摘要: 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 阅读(38) 评论(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 阅读(18) 评论(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 阅读(98) 评论(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 阅读(17) 评论(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 阅读(21) 评论(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 阅读(16) 评论(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 阅读(8) 评论(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 阅读(18) 评论(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 阅读(70) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页