-
Notifications
You must be signed in to change notification settings - Fork 14
Random Problem
yltx edited this page May 31, 2026
·
1 revision
根据难度和来源(题库)随机选择一道题目,适合刷题练习。
按 Ctrl+Alt+G R,按提示选择筛选条件。
-
选择难度(如果
showSelectDifficultyHint为 true) -
选择题库(如果
showSelectProblemsetHint为 true) - 随机选题并打开
| 等级 | 说明 |
|---|---|
| 暂无评定 | 未评定难度 |
| 入门 | 入门级 |
| 普及- | 普及减 |
| 普及/提高- | 普及到提高减 |
| 普及+/提高 | 普及加到提高 |
| 提高+/省选- | 提高加到省选减 |
| 省选/NOI- | 省选到 NOI 减 |
| NOI/NOI+/CTSC | NOI 级别 |
| 题库 | 前缀 | 说明 |
|---|---|---|
| 洛谷题库 | P | 洛谷主站题库 |
| 入门与面试 | B | 入门与面试题 |
| Codeforces | CF | Codeforces 题目 |
| APOJ | — | APOJ 题目 |
| AtCoder | AT | AtCoder 题目 |
| UVA | UVA | UVA 题目 |
可以在设置中预设默认难度和题库,避免每次选择:
-
luogu.defaultDifficulty— 默认难度 -
luogu.defaultProblemSet— 默认题库 -
luogu.showSelectDifficultyHint— 是否显示难度选择(设为 false 则直接使用默认值) -
luogu.showSelectProblemsetHint— 是否显示题库选择
- 请求
/problem/list?difficulty={d}&type={t}&page=1&_contentOnly=1获取总题数 - 计算总页数(每页 50 题)
- 随机选择一页,获取该页题目列表
- 从列表中随机选择一道题
- 调用题目查看器打开
| 设置 | 默认值 | 说明 |
|---|---|---|
luogu.defaultDifficulty |
— | 默认难度等级 |
luogu.defaultProblemSet |
— | 默认题库 |
luogu.showSelectDifficultyHint |
true |
显示难度选择提示 |
luogu.showSelectProblemsetHint |
true |
显示题库选择提示 |