10 2022 档案
摘要:cf: 1.https://codeforces.com/problemset/problem/1739/B 题目大意: 给定一个数组B,令数组B[i]=abs(a[i]-a[i-1)),你的任务是尽可能的还原A数组,输出任意满足条件的构造数组 做法: 利用题目给出的条件构造数组即可,首先肯定是a[
阅读全文
摘要:https://blog.csdn.net/qq_39416311/article/details/102762635
阅读全文
摘要:转载地址:https://www.acwing.com/blog/content/10034/
阅读全文
摘要:不好做的A题:没想到好做法,先存着完成任务在做:https://codeforces.ml/problemset/problem/1735/A
阅读全文
摘要:1.https://codeforces.com/contest/1746/problem/A 题意:给定一组数,满足由0,1构成,可以进行这样的操作来实现将数组a变成只有一个元素1的数组的最小操作数 操作如下: 一、选相邻两个元素的最小值并将他们合并,数组长度长度减一 二、选择连续k个元素求他们最
阅读全文
摘要:Codeforces Round #829 (Div. 2): A:https://codeforces.com/contest/1754/problem/A 题意:给定一串由QA两个元素组成的字符串,判断是否Q的数量大于A的数量,如果是输出No,如果不是(这里分两种情况,一,Q和A的数量相等,二、
阅读全文
摘要:1.https://nanti.jisuanke.com/t/T1649 简单模拟,对其从横方向和竖方向进行暴力搜索即可 #include<bits/stdc++.h> using namespace std; #define int long long #define IOS ios_base::
阅读全文
摘要:https://pintia.cn/problem-sets/994805342720868352/exam/problems/1038430130011897856 建树+LCA跑图
阅读全文
摘要:写的不错,复习基础二叉树可以参考大佬的笔记 转载地址:https://blog.csdn.net/Mic_Mickey/article/details/114389568
阅读全文
摘要:https://pintia.cn/problem-sets/994805342720868352/exam/problems/1478635060278108160
阅读全文
摘要:https://codeforces.ml/contest/1738/problem/B https://codeforces.ml/contest/1735/problem/C https://www.luogu.com.cn/problem/CF2A
阅读全文
摘要:1167:https://pintia.cn/problem-sets/994805342720868352/exam/problems/1478636026017230848 是一道裸题笛卡尔树,笛卡尔树具有键值和权值两个衡量标尺,键值满足complete tree,权值满足大(小)根堆的性质;并
阅读全文