- 补题 | 2026沈阳 J6 min
- 补题 | 2026沈阳 C
用有序数对记录缓存的访问顺序,以全部直接访问的代价为基准,再维护每一列的最小值,把动态规划从 O(nm²) 优化到 O(nm)。
7 min - 补题 | ABC482F3 min
- 补题 | Ucup 3 St.18 C
题目 https://qoj.ac/contest/1849/problem/9783/statement/zh_cn 思路 记 d(u,v) 代表 u,v 节点之间的距离,不难注意到: query(\mathbf A) + query (\mathbf B) \ne query (\mathbf
3 min - 补题 | ICPC EC 线上一 D
做法 容易发现的是: 若给定集合 \{p_1,p_2,\cdots,p_n\} ,那么当 p_i=p_{i+1} 且 p_i+p_{i+1}=i 时方案数可翻倍。(开头必然有两种) 若集合合法,则必须满足: p_i < i p_i + p_{i+1} = i 或 p_i = p_{i+1} 考虑对集
2 min - 补题 | ARC224D
题目 There are N cards, numbered 1 through N. Initially, nothing is written on any of the cards. You can write zero or more positive integers on each ca
2 min - 补题 | CF2246D
题目 You are given an array a of n integers. Alice and Bob will play a game with this array. Before the game with Bob starts, Alice can increment any el
4 min - 补题 | CF2242F
题目 While reading the statement of this problem, we recommend forgetting that summer consists of 92 days and that a day consists of 1440 minutes. This
5 min - 我的mac输入法配置习惯分享
尝试了使用万象拼音替代自带的输入法,但是痛点如下: 从鼠须管使用 ⇪ 切换到官方输入法预编辑串直接消失 官方的 ⇪ 切换响应慢,有时需要按很多下 解决方案 mac 上的 karabiner-elements 支持对键盘上的任意按键修改映射,而 mac 键盘缺少右 ⌃ ,可将 ⇪ 映射到右 ⌃。 St
2 min - 补题 | CF2241G
题目 Note that the answer for this problem might not fit in int64 or long long. It is recommended to use int128. For any array b of length m, define f(b
7 min
Back
Blog
Page 1 - Showing 10 of 35 posts
View all posts by years →