08 2023 档案

摘要:Educational Codeforces Round 153 (Rated for Div. 2) A - Not a Substring 思路:找到串中最大的层数,若层数为1,构造层数大于1的即可;若层数大于1,构造层数为1的即可 #include<bits/stdc++.h> using n 阅读全文
posted @ 2023-08-19 16:18 bible_w 阅读(24) 评论(0) 推荐(0) 编辑
摘要:Educational Codeforces Round 109 (Rated for Div. 2) A - Potion-making 思路:求最小操作数即药水最简比 #include<bits/stdc++.h> using namespace std; #define int long lo 阅读全文
posted @ 2023-08-17 19:09 bible_w 阅读(12) 评论(0) 推荐(0) 编辑
摘要:Educational Codeforces Round 107 (Rated for Div. 2) A - Review Site 思路:数1和3的个数 #include<bits/stdc++.h> using namespace std; #define int long long //#d 阅读全文
posted @ 2023-08-16 16:11 bible_w 阅读(4) 评论(0) 推荐(0) 编辑
摘要:Codeforces Round 893 (Div. 2) A - Buttons 思路:将第三种按钮平分给两人,若第一个人的按钮数大于第二个人则First #include<bits/stdc++.h> using namespace std; #define int long long //#d 阅读全文
posted @ 2023-08-16 14:05 bible_w 阅读(68) 评论(0) 推荐(0) 编辑
摘要:Codeforces Global Round 15 A - Subsequence Permutation 思路:找出原串与排序后的串不同的个数 #include <bits/stdc++.h> using namespace std; void solve(){ int n;cin>>n; st 阅读全文
posted @ 2023-08-15 16:09 bible_w 阅读(9) 评论(0) 推荐(0) 编辑
摘要:23 暑假友谊赛 No.4 A - Alien Sunset 思路:用差分数组标记每个周期的夜晚,(从0开始) #include<bits/stdc++.h> using namespace std; #define int long long //#define int __int128 #def 阅读全文
posted @ 2023-08-10 16:49 bible_w 阅读(7) 评论(0) 推荐(0) 编辑
摘要:Codeforces Round 891 (Div. 3) A - Array Coloring 思路:需要两部分的奇偶相同,判断奇数的个数是否为偶数即可 #include<bits/stdc++.h> using namespace std; #define int long long //#de 阅读全文
posted @ 2023-08-08 18:54 bible_w 阅读(122) 评论(0) 推荐(0) 编辑
摘要:Codeforces Round 889 (Div. 2) A - Dalton the Teacher 思路:找出pi=i的数量,除2为答案 #include<bits/stdc++.h> using namespace std; #define int long long //#define i 阅读全文
posted @ 2023-08-07 22:15 bible_w 阅读(27) 评论(0) 推荐(0) 编辑
摘要:AtCoder Beginner Contest 313 A - To Be Saikyo 思路:找到最大的,和第一个比较 #include<bits/stdc++.h> using namespace std; #define int long long //#define int __int12 阅读全文
posted @ 2023-08-07 21:16 bible_w 阅读(23) 评论(0) 推荐(0) 编辑
摘要:23 暑假友谊赛 No.3 A - 把你砍成两半! 思路:确定a1时,当a2~an都为a1的倍数时,条件一定满足 #include<bits/stdc++.h> using namespace std; #define int long long //#define int __int128 typ 阅读全文
posted @ 2023-08-03 14:58 bible_w 阅读(8) 评论(0) 推荐(0) 编辑
摘要:The 10th Shandong Provincial Collegiate Programming Contest A - Calandar 思路:将日期转换为天数,求出差值对5取模 #include<bits/stdc++.h> using namespace std; #define int 阅读全文
posted @ 2023-08-01 21:32 bible_w 阅读(28) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示