摘要:
原题链接 题解 一个合法的括号序列,满足 长度为偶数 前缀和处处不小于0 左括号等于右括号数量 code #include<bits/stdc++.h> #define ll long long #define lowbit(x) ((x)&(-x)) using namespace std; co 阅读全文
posted @ 2024-07-29 23:05
纯粹的
阅读(45)
评论(0)
推荐(0)
摘要:
原题链接 题解 对于第一个元素,只有两种状态,要么取了,要么没取 如果取了,其能得到最大值的配置是唯一的 没取也是一样 阅读全文
posted @ 2024-07-29 21:44
纯粹的
阅读(15)
评论(0)
推荐(0)
摘要:
原题链接 题解 非交叉匹配 code #include<bits/stdc++.h> #define ll long long using namespace std; const ll mod = 1e9+7; ll qpow(ll a, ll b) { ll res = 1; while (b) 阅读全文
posted @ 2024-07-29 20:07
纯粹的
阅读(14)
评论(0)
推荐(0)

浙公网安备 33010602011771号