随笔分类 -  ACM - 数据结构- STL

摘要:2022 China Collegiate Programming Contest (CCPC) Mianyang Onsite (2022CCPC绵阳)ACGHM https://codeforces.com/gym/104065 昨天女队vp了一下,赛时4题223罚时 A是一个dp,学妹已经写的 阅读全文
posted @ 2023-09-15 20:36 Sakana~ 阅读(332) 评论(0) 推荐(0) 编辑
摘要:# 蓝桥杯省赛真题(砍树 整数删除 景区导游 翻转硬币) 四道比较难的题(题解是官方提供的) ## 砍树 (树上差分) https://www.lanqiao.cn/problems/3517/learning/ ### 解题思路 在这个问题中,我们需要找到一条边,砍掉它之后,所有给出的节点对 $( 阅读全文
posted @ 2023-08-22 18:01 Sakana~ 阅读(95) 评论(0) 推荐(0) 编辑
摘要:# Educational Codeforces Round 36 (Rated for Div. 2) https://codeforces.com/contest/915 浓浓ds味的一场edu ## A. Garden 找最大因子 ```CC #include using namespace 阅读全文
posted @ 2023-08-02 16:32 Sakana~ 阅读(19) 评论(0) 推荐(0) 编辑
摘要:# Codeforces Round 618 (Div. 2) https://codeforces.com/contest/1300 ## A. Non-zero 要求和,积都不为0,则先把全部0操作一次,然后再check 和是否为0,是的话再对任意数操作一次即可。 ```CC #include 阅读全文
posted @ 2023-07-27 13:36 Sakana~ 阅读(10) 评论(0) 推荐(0) 编辑
摘要:AtCoder Beginner Contest 128 https://atcoder.jp/contests/abc128 A - Apple Pie #include <bits/stdc++.h> using namespace std; int main () { int a, b; ci 阅读全文
posted @ 2022-12-30 23:19 Sakana~ 阅读(30) 评论(0) 推荐(0) 编辑
摘要:AtCoder Beginner Contest 127 https://atcoder.jp/contests/abc127/tasks 4/6: ABCD A - Ferris Wheel 水题 #include <bits/stdc++.h> using namespace std; int 阅读全文
posted @ 2022-12-29 23:28 Sakana~ 阅读(31) 评论(0) 推荐(0) 编辑
摘要:AtCoder Beginner Contest 265  A-FAtCoder Beginner Contest 265 A-F https://atcoder.jp/contests/abc265 A - Apple 有两种购买策略:x 元买一个苹果 or y 元买三个苹果,问买 n 个苹果最少要花多少钱 #include <bits/stdc++ 阅读全文
posted @ 2022-08-26 15:53 Sakana~ 阅读(208) 评论(0) 推荐(1) 编辑
摘要:AtCoder Beginner Contest 262 A-F https://atcoder.jp/contests/abc262 我太懒了,现在才发 A - World Cup 题意 给定y,找到>=y的离y最近的模4等于2的数 分析 如题 Code #include <bits/stdc++ 阅读全文
posted @ 2022-08-02 22:26 Sakana~ 阅读(252) 评论(5) 推荐(2) 编辑
摘要:AtCoder Beginner Contest 260 https://atcoder.jp/contests/abc260/tasks A - A Unique Letter 题意 给定一个字符串,输出任意一个只出现了一次的字符 分析 直接模拟啦 Code #include <bits/stdc 阅读全文
posted @ 2022-07-21 11:42 Sakana~ 阅读(348) 评论(3) 推荐(0) 编辑

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