摘要: 纯爷们,没什么好说的,干就完了 阅读全文
posted @ 2024-04-18 16:34 yys_c 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 更新master分支 git remote add upstream https://xxx/xxx/xxx.git git fetch upstream git checkout master git rebase upstream/master # 此处有冲突就解冲突, 用git status查 阅读全文
posted @ 2022-04-26 20:42 yys_c 阅读(36) 评论(0) 推荐(0) 编辑
摘要: P1944 最长括号匹配 f[i]表示以s[i]为结尾的最长规范括号序列 s[i] = ( || s[i] = [ 时 f[i] = 0 s[i] = ) && s[i - 1 - f[i - 1]] = ( 时 f[i] = f[i - 1] + 2 + f[i - 2 - f[i - 1]]] 阅读全文
posted @ 2022-02-08 12:04 yys_c 阅读(25) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> #define LOCAL using namespace std; template<typename A, typename B> ostream& operator<<(ostream &os, const pair<A, B> &p) { r 阅读全文
posted @ 2022-02-05 22:21 yys_c 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 最长连续回文子串,正反匹配最长公共连续子串 #include <bits/stdc++.h> #define LOCAL using namespace std; template<typename A, typename B> ostream& operator<<(ostream &os, co 阅读全文
posted @ 2022-02-05 11:01 yys_c 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 坑:路径后面车站多出来的车不能弥补前面的空缺 #include <bits/stdc++.h> #define LOCAL using namespace std; template<typename A, typename B> ostream& operator<<(ostream &os, c 阅读全文
posted @ 2022-02-05 10:27 yys_c 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 码农题 #include <bits/stdc++.h> #define LOCAL using namespace std; template<typename A, typename B> ostream& operator<<(ostream &os, const pair<A, B> &p) 阅读全文
posted @ 2022-02-04 18:14 yys_c 阅读(13) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> #define LOCAL using namespace std; template<typename A, typename B> ostream& operator<<(ostream &os, const pair<A, B> &p) { r 阅读全文
posted @ 2022-02-04 13:34 yys_c 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 单点修改+区间查询的分块,主要问题查询和确定左右边界上 #include <bits/stdc++.h> #define LOCAL using namespace std; #define vec vector #define ll long long #define ld long double 阅读全文
posted @ 2022-02-03 22:11 yys_c 阅读(35) 评论(0) 推荐(0) 编辑
摘要: [Jsoi2010]连通数:有向图求每一个点到能到达的点的个数的和(包括自己到自己) SCC+bitset+dp #include<bits/stdc++.h> using namespace std; // 方法:SCC + bitset传递闭包 或 直接bitset优化floyd /** * 1 阅读全文
posted @ 2021-11-29 11:18 yys_c 阅读(51) 评论(0) 推荐(0) 编辑