JZTXT
首页
Ai
Java
Python
Android
Mysql
JavaScript
Html
CSS
P2697
Luogu P2697 宝石串
## 题目 [link](https://www.luogu.com.cn/problem/P2697) ## 思路 将字符串中 $G$ 换为 $-1$, $R$ 换为 $1$, 进行前缀和处理, 若和为 $0$, 则为稳定的宝石串,比较记录最大值 ## Code ```cpp #include u ......
Luogu
P2697
2697
更新时间 2023-05-24
共1篇 :1/1页
首页
上一页
1
下一页
尾页