xxxxllll
xxxxllll
全部文章
分类
题解(7)
归档
标签
去牛客网
登录
/
注册
xxxxllll的博客
全部文章
(共1篇)
对环类问题使用尺取法的注意事项
对于环类的问题,用双指针、尺取法的时候要注意high取模(high%n)并且low要从0走到n-1才行,不能像直线型问题high走到n-1就可以停了。 #include <bits/stdc++.h> using namespace std; int arr[100050]; i...
双指针
枚举
2022-02-17
0
349