上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页
摘要: Educational Codeforces Round 71 (Rated for Div. 2) A - There Are Two Types Of Burgers 思路:价格高的优先取 #include<bits/stdc++.h> using namespace std; #define 阅读全文
posted @ 2023-07-25 13:20 bible_w 阅读(8) 评论(0) 推荐(0) 编辑
摘要: Codeforces Round 886 (Div. 4) A - To My Critics 思路:最大的两个数的和大于等于10则YES #include<bits/stdc++.h> using namespace std; #define int long long typedef pair< 阅读全文
posted @ 2023-07-22 10:41 bible_w 阅读(123) 评论(0) 推荐(0) 编辑
摘要: Codeforces Round 501 (Div. 3) A - Points in Segments 思路:记录每个区间 #include<bits/stdc++.h> using namespace std; #define int long long //#define int __int1 阅读全文
posted @ 2023-07-21 16:32 bible_w 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(3) 评论(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 阅读(28) 评论(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 阅读(11) 评论(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 阅读(87) 评论(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 阅读(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) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页