摘要:
problem F、H 略 L 每次维护栈顶的n个元素,因为不会pop到后面的元素 C 稍微有点意思的一个构造,有很多不同的通过方案。感觉纯纯奇思妙想题。赛时队友秒了。 赛后因为不会妙妙构造,写了很暴力的构式实现(\(O(nlogn)\))草过去了 #include <bits/stdc++.h> 阅读全文
posted @ 2025-05-29 22:01
lyrrr
阅读(25)
评论(0)
推荐(0)
摘要:
[capture](params) -> return_type { body; } 主要捕获方式为值捕获和引用捕获。 ex: int factor = 3; auto multiply = [factor](int x) { return x * factor; }; cout << multip 阅读全文
posted @ 2025-05-29 21:32
lyrrr
阅读(13)
评论(0)
推荐(0)
摘要:
rotate & rotate_copy 循环旋转序列内元素 template< class ForwardIt > ForwardIt rotate(ForwardIt first, ForwardIt middle, ForwardIt last); template< class Forwar 阅读全文
posted @ 2025-05-29 21:25
lyrrr
阅读(10)
评论(0)
推荐(0)

浙公网安备 33010602011771号