上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 30 下一页
摘要: https://codeforces.com/contest/1791 ABCDEG1全水题,直接上代码 F往下翻 ###A. Codeforces Checking #include<bits/stdc++.h> using namespace std; typedef long long LL; 阅读全文
posted @ 2023-02-22 15:28 高尔赛凡尔娟 阅读(81) 评论(0) 推荐(0) 编辑
摘要: (我又来水博客了)才五天没写题,打成这样子,会被自己气sha https://www.acwing.com/activity/content/2870/ ###AcWing 4806. 首字母大写 #include<bits/stdc++.h> using namespace std; typede 阅读全文
posted @ 2023-02-11 20:19 高尔赛凡尔娟 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 来水一篇博客,前面虽然打了挺多比赛,但是一直在忙项目和考试,没补题,那些就等补完题目再写完整的题解咯(:水多了也不好哈哈 https://atcoder.jp/contests/abc288 今天这场断层了,D直接ac人数不超过1k,unrated的我慢悠悠造完三题下班~ ###A - Many A 阅读全文
posted @ 2023-02-04 23:43 高尔赛凡尔娟 阅读(49) 评论(0) 推荐(0) 编辑
摘要: https://codeforces.com/contest/1790/problem/E 题目大意: 两个正数a和b (a,b>0)。a⊕b=(a+b)/2, a⊕b==x。 找到任何合适的a和b,或者不存在"-1"。 inputCopy 6 2 5 10 6 18 36 outputCopy 3 阅读全文
posted @ 2023-01-30 23:16 高尔赛凡尔娟 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 今天T2卡的我有点久(一开始的思考路线错了,手又冻的哆哆嗦嗦的,手速慢了哈哈(越来越菜了 https://www.acwing.com/activity/content/competition/problem_list/2840/ ###AcWing 4800. 下一个 #include<bits/ 阅读全文
posted @ 2023-01-28 21:40 高尔赛凡尔娟 阅读(4) 评论(0) 推荐(0) 编辑
摘要: https://codeforces.com/contest/1399/problem/D 题目大意: 长度为n的字符串s只由0和1组成。 我们要把s分成最小数量的子序列,使得每一个子序列看起来像“010101 ...”或者“101010……”(即子序列不应包含两个相邻的0或1)。 先输出总共划分成 阅读全文
posted @ 2023-01-25 23:15 高尔赛凡尔娟 阅读(14) 评论(0) 推荐(0) 编辑
摘要: ###L2-036 网红点打卡攻略 题目不难,但是需要仔细解读题目所给条件是什么意思 我们需要在所给的每个打卡点打卡只一次,说明每个网红店都只能经过一次 从家出发,顺着道路所给的网红打卡点一直走,说明一直就看这两者之间的道路值就行了,没有就是走不通的,走完最后一个打卡点直接回家 #include<b 阅读全文
posted @ 2023-01-25 10:30 高尔赛凡尔娟 阅读(31) 评论(0) 推荐(0) 编辑
摘要: ###L2-031 深入虎穴 这个题目我疑惑了好久,因为它说只有一个入口,但是却没有告诉我们哪个是入口,并且需要我们找出距离入口最远的那扇门 所以我们在做题时要一一判断哪个是入口,然后再进行寻找 #include<bits/stdc++.h> using namespace std; typedef 阅读全文
posted @ 2023-01-22 19:29 高尔赛凡尔娟 阅读(21) 评论(0) 推荐(0) 编辑
摘要: https://www.acwing.com/activity/content/competition/problem_list/2814/ ###4797. 移动棋子 #include<bits/stdc++.h> using namespace std; typedef long long LL 阅读全文
posted @ 2023-01-22 17:03 高尔赛凡尔娟 阅读(4) 评论(0) 推荐(0) 编辑
摘要: https://www.luogu.com.cn/problem/P1014 详解见代码内部注释部分 #include<bits/stdc++.h> using namespace std; typedef long long LL; typedef pair<LL,LL> PII; const L 阅读全文
posted @ 2023-01-19 22:06 高尔赛凡尔娟 阅读(28) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 30 下一页