上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页
摘要: 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 阅读(25) 评论(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 阅读(21) 评论(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 阅读(6) 评论(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 阅读(16) 评论(0) 推荐(0) 编辑
摘要: (AtCoder Beginner Contest 312) A - Chord #include<bits/stdc++.h> using namespace std; #define int long long //#define int __int128 typedef pair<int,in 阅读全文
posted @ 2023-07-29 22:14 bible_w 阅读(215) 评论(2) 推荐(0) 编辑
摘要: Educational Codeforces Round 76 (Rated for Div. 2) A - Two Rival Students 思路:最多可加x个距离,且最后的距离不能超过n-1 #include<bits/stdc++.h> using namespace std; #defi 阅读全文
posted @ 2023-07-28 19:13 bible_w 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 互不侵犯KING 思路:dp[i][j][k]表示前i行,且已经用了j个国王,且第i行的摆放状态为k(二进制); dp[i][j][k]=dp[i-1][ j-num[now]][pre],now表示第i行的状态,pre表示上一行的状态,num[i]维护一行的状态为i的国王数量,且需保证now和pr 阅读全文
posted @ 2023-07-27 18:38 bible_w 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 23暑假友谊赛No.2 雨 #include<bits/stdc++.h> using namespace std; #define int long long //#define int __int128 typedef pair<int,int>PII; typedef pair<string, 阅读全文
posted @ 2023-07-26 19:34 bible_w 阅读(4) 评论(0) 推荐(0) 编辑
摘要: Codeforces Round 888 (Div. 3) A - Escalator Conversations 思路:求出每个人与Vlad的身高差d,若的能被k整除,且d/k<m则YES #include<bits/stdc++.h> using namespace std; #define i 阅读全文
posted @ 2023-07-26 10:29 bible_w 阅读(172) 评论(0) 推荐(1) 编辑
摘要: AtCoder Beginner Contest 311 First ABC 思路:找到第一个a,b,c都出现的位置 #include<bits/stdc++.h> using namespace std; #define int long long //#define int __int128 t 阅读全文
posted @ 2023-07-25 14:43 bible_w 阅读(63) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页