随笔分类 - ACM - 数据结构- STL
摘要:2022 China Collegiate Programming Contest (CCPC) Mianyang Onsite (2022CCPC绵阳)ACGHM https://codeforces.com/gym/104065 昨天女队vp了一下,赛时4题223罚时 A是一个dp,学妹已经写的
阅读全文
摘要:# 蓝桥杯省赛真题(砍树 整数删除 景区导游 翻转硬币) 四道比较难的题(题解是官方提供的) ## 砍树 (树上差分) https://www.lanqiao.cn/problems/3517/learning/ ### 解题思路 在这个问题中,我们需要找到一条边,砍掉它之后,所有给出的节点对 $(
阅读全文
摘要:# Educational Codeforces Round 36 (Rated for Div. 2) https://codeforces.com/contest/915 浓浓ds味的一场edu ## A. Garden 找最大因子 ```CC #include using namespace
阅读全文
摘要:# Codeforces Round 618 (Div. 2) https://codeforces.com/contest/1300 ## A. Non-zero 要求和,积都不为0,则先把全部0操作一次,然后再check 和是否为0,是的话再对任意数操作一次即可。 ```CC #include
阅读全文
摘要: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
阅读全文
摘要:AtCoder Beginner Contest 127 https://atcoder.jp/contests/abc127/tasks 4/6: ABCD A - Ferris Wheel 水题 #include <bits/stdc++.h> using namespace std; int
阅读全文
摘要:
AtCoder Beginner Contest 265 A-F https://atcoder.jp/contests/abc265 A - Apple 有两种购买策略: 元买一个苹果 or 元买三个苹果,问买 个苹果最少要花多少钱 #include <bits/stdc++
阅读全文

摘要:AtCoder Beginner Contest 262 A-F https://atcoder.jp/contests/abc262 我太懒了,现在才发 A - World Cup 题意 给定y,找到>=y的离y最近的模4等于2的数 分析 如题 Code #include <bits/stdc++
阅读全文
摘要:AtCoder Beginner Contest 260 https://atcoder.jp/contests/abc260/tasks A - A Unique Letter 题意 给定一个字符串,输出任意一个只出现了一次的字符 分析 直接模拟啦 Code #include <bits/stdc
阅读全文