11 2023 档案

摘要:Codeforces Round 883 (Div. 3) A. Rudolph and Cut the Rope 题意:有一颗糖果在连在绳子上,求剪短多少根绳子,他能落地 思路:只要绳子长度比钉子高度大就不用减 #include <bits/stdc++.h> using namespace st 阅读全文
posted @ 2023-11-30 15:17 goodluckbear 阅读(17) 评论(0) 推荐(0) 编辑
摘要:Codeforces Round 903 (Div. 3) A. Don't Try to Count 大概题意给你两个字符串a,b。a串可进行的操作为将整个a串复制到之前的a串后面(直接用a+a即可),然后看操作多少次可以让b串变为a串的子串如果不能就输出-1。 #include <iostrea 阅读全文
posted @ 2023-11-28 14:15 goodluckbear 阅读(17) 评论(0) 推荐(0) 编辑
摘要:Codeforces Round 894 (Div. 3) A. Gift Carpet 题意:判断一列一个字母有没有“vika” 思路:挨个枚举每一列 #include<bits/stdc++.h> using namespace std; char mp[25][25]; char x[]={' 阅读全文
posted @ 2023-11-28 14:14 goodluckbear 阅读(25) 评论(0) 推荐(1) 编辑
摘要:Codeforces Round 905 (Div. 3) A. Morning 题意:操作:显示,向前走都为一次操作;目标:显示这四个数 思路:0->10,然后依次作差就行 #include <bits/stdc++.h> using namespace std; void solve(){ ch 阅读全文
posted @ 2023-11-24 18:57 goodluckbear 阅读(41) 评论(0) 推荐(0) 编辑
摘要:Codeforces Round 909 (Div.3) A. Game with Integers 水题,就是可以被3整除的输出“Second”,不能被3整除的输出“First” #include<iostream> using namespace std; int main() { int t; 阅读全文
posted @ 2023-11-24 15:40 goodluckbear 阅读(50) 评论(0) 推荐(0) 编辑

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