会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
博客园
首页
新随笔
联系
订阅
管理
2024年1月21日
P8661 [蓝桥杯 2018 省 B] 日志统计
摘要: 这道题可以用类似单调队列的思路实现,因为其本质上是一个滑动窗口,虽然有两重循环,但是因为i和j是总的N被分摊之后的数字,所以真实的时间复杂度依然是O(N) #include <iostream> #include <stdio.h> #include <algorithm> #include <st
阅读全文
posted @ 2024-01-21 00:15 Gold_stein
阅读(31)
评论(0)
推荐(0)
编辑
公告