![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
双指针
_WAWA鱼_
郑州大学退役ACMer,已签约小米浏览器内核开发,曾在科大讯飞实习做大模型SDK,努力成长中,欢迎大家一起学习和交流~
展开
-
R---双指针/二分
这题双指针没想出来,用二分+前缀和写出来了,写的巨复杂,下面是两种写法 二分+前缀和写法 #include <iostream> #include <cstring> #include <algorithm> #include <vector> #include <map> using namespace std; #define int long long const int N = 200010; char s[N]; int n,k; in.原创 2022-02-08 20:40:14 · 369 阅读 · 0 评论 -
广工新生赛---过生日---双指针
过生日 双指针是真没想出来,这场新生赛快打自闭了,基本全是数学 题目链接 #include <iostream> #include <cstring> #include <algorithm> using namespace std; typedef long long LL; const int N = 110,INF=0x3f3f3f3f; string s; int k; int num[100010]; int main() { int T;原创 2021-11-28 22:31:29 · 430 阅读 · 0 评论