上一页 1 2 3 4 5 6 7 8 9 ··· 25 下一页
摘要: cf: 1.https://codeforces.com/problemset/problem/1739/B 题目大意: 给定一个数组B,令数组B[i]=abs(a[i]-a[i-1)),你的任务是尽可能的还原A数组,输出任意满足条件的构造数组 做法: 利用题目给出的条件构造数组即可,首先肯定是a[ 阅读全文
posted @ 2022-10-27 21:38 江上舟摇 阅读(62) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/qq_39416311/article/details/102762635 阅读全文
posted @ 2022-10-27 09:36 江上舟摇 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 转载地址:https://www.acwing.com/blog/content/10034/ 阅读全文
posted @ 2022-10-27 09:33 江上舟摇 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 不好做的A题:没想到好做法,先存着完成任务在做:https://codeforces.ml/problemset/problem/1735/A 阅读全文
posted @ 2022-10-26 19:42 江上舟摇 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 1.https://codeforces.com/contest/1746/problem/A 题意:给定一组数,满足由0,1构成,可以进行这样的操作来实现将数组a变成只有一个元素1的数组的最小操作数 操作如下: 一、选相邻两个元素的最小值并将他们合并,数组长度长度减一 二、选择连续k个元素求他们最 阅读全文
posted @ 2022-10-25 21:41 江上舟摇 阅读(109) 评论(0) 推荐(0) 编辑
摘要: Codeforces Round #829 (Div. 2): A:https://codeforces.com/contest/1754/problem/A 题意:给定一串由QA两个元素组成的字符串,判断是否Q的数量大于A的数量,如果是输出No,如果不是(这里分两种情况,一,Q和A的数量相等,二、 阅读全文
posted @ 2022-10-24 14:59 江上舟摇 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 1.https://nanti.jisuanke.com/t/T1649 简单模拟,对其从横方向和竖方向进行暴力搜索即可 #include<bits/stdc++.h> using namespace std; #define int long long #define IOS ios_base:: 阅读全文
posted @ 2022-10-23 19:51 江上舟摇 阅读(66) 评论(0) 推荐(0) 编辑
摘要: https://pintia.cn/problem-sets/994805342720868352/exam/problems/1038430130011897856 建树+LCA跑图 阅读全文
posted @ 2022-10-19 21:09 江上舟摇 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 写的不错,复习基础二叉树可以参考大佬的笔记 转载地址:https://blog.csdn.net/Mic_Mickey/article/details/114389568 阅读全文
posted @ 2022-10-16 20:49 江上舟摇 阅读(9) 评论(0) 推荐(0) 编辑
摘要: https://pintia.cn/problem-sets/994805342720868352/exam/problems/1478635060278108160 阅读全文
posted @ 2022-10-12 20:49 江上舟摇 阅读(5) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 25 下一页