Datasets:
Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +31 -0
- README.md +240 -0
- categories.json +1278 -0
- manifest.csv +0 -0
- manifest.jsonl +0 -0
- problems/MA-03/ICPC_WF/2017/K-tarot-sham-boast/data/sample-2.ans +3 -0
- problems/MA-03/ICPC_WF/2017/K-tarot-sham-boast/data/secret-008_random.ans +10 -0
- problems/MA-03/ICPC_WF/2017/K-tarot-sham-boast/data/secret-010_random.ans +10 -0
- problems/MA-03/ICPC_WF/2017/K-tarot-sham-boast/data/secret-016_lastdiffer.in +11 -0
- problems/MA-03/ICPC_WF/2017/K-tarot-sham-boast/data/secret-018_random.ans +10 -0
- problems/MA-03/ICPC_WF/2017/K-tarot-sham-boast/data/secret-018_random.in +11 -0
- problems/MA-03/ICPC_WF/2017/K-tarot-sham-boast/data/secret-030_oner.ans +10 -0
- problems/MA-03/ICPC_WF/2017/K-tarot-sham-boast/data/secret-032_oner.in +11 -0
- problems/MA-03/ICPC_WF/2017/K-tarot-sham-boast/data/secret-037_random.ans +8 -0
- problems/MA-03/ICPC_WF/2017/K-tarot-sham-boast/data/secret-042_random.ans +0 -0
- problems/MA-03/ICPC_WF/2017/K-tarot-sham-boast/data/secret-047_oner.in +0 -0
- problems/MA-03/ICPC_WF/2017/K-tarot-sham-boast/data/secret-057_binaryties.in +0 -0
- problems/MA-03/ICPC_WF/2017/K-tarot-sham-boast/judge.json +14 -0
- problems/MA-03/ICPC_WF/2017/K-tarot-sham-boast/meta.json +9 -0
- problems/MA-03/ICPC_WF/2017/K-tarot-sham-boast/page.html +206 -0
- problems/MA-03/ICPC_WF/2017/K-tarot-sham-boast/solution.cpp +52 -0
- problems/MA-03/ICPC_WF/2017/K-tarot-sham-boast/solution.tex +156 -0
- problems/MA-03/ICPC_WF/2017/K-tarot-sham-boast/statement.txt +58 -0
- problems/MA-03/ICPC_WF/2018/D-gem-island/data/sample-2.ans +1 -0
- problems/MA-03/ICPC_WF/2018/D-gem-island/data/sample-3.ans +1 -0
- problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0001-0001-0001.in +1 -0
- problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0001-0002-0001.ans +1 -0
- problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0001-0010-0001.ans +1 -0
- problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0001-0444-0001.ans +1 -0
- problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0002-0001-0002.ans +1 -0
- problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0002-0002-0001.in +1 -0
- problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0002-0002-0002.in +1 -0
- problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0002-0010-0001.ans +1 -0
- problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0002-0100-0001.in +1 -0
- problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0002-0277-0001.in +1 -0
- problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0002-0500-0002.in +1 -0
- problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0003-0001-0001.ans +1 -0
- problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0003-0001-0002.ans +1 -0
- problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0003-0099-0001.ans +1 -0
- problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0003-0142-0002.ans +1 -0
- problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0004-0001-0001.ans +1 -0
- problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0004-0001-0001.in +1 -0
- problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0004-0055-0001.ans +1 -0
- problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0004-0055-0002.ans +1 -0
- problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0004-0055-0002.in +1 -0
- problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0004-0055-0003.ans +1 -0
- problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0005-0005-0001.in +1 -0
- problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0005-0020-0003.ans +1 -0
- problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0005-0020-0003.in +1 -0
- problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0010-0005-0002.in +1 -0
.gitattributes
CHANGED
|
@@ -58,3 +58,34 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
problems/2024/C-citizenship/statement.pdf filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
problems/2024/F-friendly-rivalry/statement.pdf filter=lfs diff=lfs merge=lfs -text
|
| 63 |
+
problems/2024/I-steppe-on-it/statement.pdf filter=lfs diff=lfs merge=lfs -text
|
| 64 |
+
problems/2025/L-walking-on-sunshine/statement.pdf filter=lfs diff=lfs merge=lfs -text
|
| 65 |
+
problems/2025/K-treasure-map/statement.pdf filter=lfs diff=lfs merge=lfs -text
|
| 66 |
+
problems/2025/D-buggy-rover/statement.pdf filter=lfs diff=lfs merge=lfs -text
|
| 67 |
+
problems/2025/F-herding-cats/statement.pdf filter=lfs diff=lfs merge=lfs -text
|
| 68 |
+
problems/2025/J-stacking-cups/statement.pdf filter=lfs diff=lfs merge=lfs -text
|
| 69 |
+
problems/2025/C-bride-of-pipe-stream/statement.pdf filter=lfs diff=lfs merge=lfs -text
|
| 70 |
+
problems/2025/E-delivery-service/statement.pdf filter=lfs diff=lfs merge=lfs -text
|
| 71 |
+
problems/2021/A-crystal-crosswind/statement.pdf filter=lfs diff=lfs merge=lfs -text
|
| 72 |
+
problems/2021/L-where-am-i/statement.pdf filter=lfs diff=lfs merge=lfs -text
|
| 73 |
+
problems/2021/E-hand-of-the-free-marked/statement.pdf filter=lfs diff=lfs merge=lfs -text
|
| 74 |
+
problems/2021/C-fair-division/statement.pdf filter=lfs diff=lfs merge=lfs -text
|
| 75 |
+
problems/2021/H-prehistoric-programs/statement.pdf filter=lfs diff=lfs merge=lfs -text
|
| 76 |
+
problems/2021/J-splitstream/statement.pdf filter=lfs diff=lfs merge=lfs -text
|
| 77 |
+
problems/2021/G-mosaic-browsing/statement.pdf filter=lfs diff=lfs merge=lfs -text
|
| 78 |
+
problems/2021/H-prehistoric-programs/data/secret-more12.in filter=lfs diff=lfs merge=lfs -text
|
| 79 |
+
problems/2021/H-prehistoric-programs/data/secret-more09.in filter=lfs diff=lfs merge=lfs -text
|
| 80 |
+
problems/2021/H-prehistoric-programs/data/secret-more13.in filter=lfs diff=lfs merge=lfs -text
|
| 81 |
+
problems/2021/H-prehistoric-programs/data/secret-more11.in filter=lfs diff=lfs merge=lfs -text
|
| 82 |
+
problems/2021/H-prehistoric-programs/data/secret-more18.in filter=lfs diff=lfs merge=lfs -text
|
| 83 |
+
problems/2021/H-prehistoric-programs/data/secret-more14.in filter=lfs diff=lfs merge=lfs -text
|
| 84 |
+
problems/2021/H-prehistoric-programs/data/secret-more10.in filter=lfs diff=lfs merge=lfs -text
|
| 85 |
+
problems/2022/P-turning-red/statement.pdf filter=lfs diff=lfs merge=lfs -text
|
| 86 |
+
problems/2022/T-carls-vacation/statement.pdf filter=lfs diff=lfs merge=lfs -text
|
| 87 |
+
problems/2022/Y-compression/statement.pdf filter=lfs diff=lfs merge=lfs -text
|
| 88 |
+
problems/2023/K-alea-iacta-est/statement.pdf filter=lfs diff=lfs merge=lfs -text
|
| 89 |
+
problems/2023/A-riddle-of-the-sphinx/statement.pdf filter=lfs diff=lfs merge=lfs -text
|
| 90 |
+
problems/2023/G-turning-red/statement.pdf filter=lfs diff=lfs merge=lfs -text
|
| 91 |
+
problems/2023/D-carls-vacation/statement.pdf filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,240 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
task_categories:
|
| 6 |
+
- text-generation
|
| 7 |
+
tags:
|
| 8 |
+
- code
|
| 9 |
+
- competitive-programming
|
| 10 |
+
- icpc
|
| 11 |
+
- atcoder
|
| 12 |
+
- algorithms
|
| 13 |
+
- reasoning
|
| 14 |
+
- llm-evaluation
|
| 15 |
+
size_categories:
|
| 16 |
+
- n<1K
|
| 17 |
+
configs:
|
| 18 |
+
- config_name: manifest
|
| 19 |
+
data_files: manifest.csv
|
| 20 |
+
---
|
| 21 |
+
|
| 22 |
+
# Competitive programming problems by algorithm category
|
| 23 |
+
|
| 24 |
+
967 problems, **157 from the ICPC World Finals (2011–2025)** and **810 from AtCoder
|
| 25 |
+
(ABC / ARC / AGC, difficulty ≥ 1200)**, each tagged with 1–3 categories from a
|
| 26 |
+
31-category algorithm taxonomy and stored under its primary category. Every problem can
|
| 27 |
+
be judged locally. It ships with:
|
| 28 |
+
|
| 29 |
+
- its statement;
|
| 30 |
+
- its official test data;
|
| 31 |
+
- an editorial;
|
| 32 |
+
- a C++ reference solution that passes every test;
|
| 33 |
+
- a `judge.json` with the resolved time limit, memory limit and judging mode.
|
| 34 |
+
|
| 35 |
+
## Categories
|
| 36 |
+
|
| 37 |
+
Each problem appears **once**, under its **primary category**, which is the first of its
|
| 38 |
+
labels. Its full label set (1–3 ids) is in `manifest.csv` / `manifest.jsonl`.
|
| 39 |
+
`taxonomy.md` defines every category and gives the boundary rules used to label them.
|
| 40 |
+
|
| 41 |
+
| ID | Family | Category | Problems | ICPC | AtCoder |
|
| 42 |
+
|---|---|---|---:|---:|---:|
|
| 43 |
+
| MA-01 | Mathematics | Math Reasoning / Formulas | 91 | 18 | 73 |
|
| 44 |
+
| MA-02 | Mathematics | Number Theory | 46 | 2 | 44 |
|
| 45 |
+
| MA-03 | Mathematics | Combinatorics & Probability | 88 | 4 | 84 |
|
| 46 |
+
| MA-04 | Mathematics | Game Theory | 36 | 4 | 32 |
|
| 47 |
+
| MA-05 | Mathematics | Bitwise / XOR | 20 | 1 | 19 |
|
| 48 |
+
| MA-06 | Mathematics | Linear Algebra / Polynomials | 39 | 7 | 32 |
|
| 49 |
+
| MA-07 | Mathematics | Geometry | 31 | 23 | 8 |
|
| 50 |
+
| DS-01 | Data Structures | Prefix Sums / Difference Arrays | 9 | 2 | 7 |
|
| 51 |
+
| DS-02 | Data Structures | Hash / Set / Map | 3 | 0 | 3 |
|
| 52 |
+
| DS-03 | Data Structures | Stack / Queue / Heap | 4 | 1 | 3 |
|
| 53 |
+
| DS-04 | Data Structures | Segment Tree / Fenwick / BST | 20 | 0 | 20 |
|
| 54 |
+
| DS-05 | Data Structures | DSU / Union-Find | 15 | 2 | 13 |
|
| 55 |
+
| DP-01 | Dynamic Programming | Linear / Sequence DP | 91 | 10 | 81 |
|
| 56 |
+
| DP-02 | Dynamic Programming | Knapsack / Subset / Bitmask DP | 53 | 5 | 48 |
|
| 57 |
+
| DP-03 | Dynamic Programming | Tree / DAG DP | 26 | 6 | 20 |
|
| 58 |
+
| DP-04 | Dynamic Programming | DP Optimization | 84 | 6 | 78 |
|
| 59 |
+
| GR-01 | Graph Theory | Traversal / Connectivity | 42 | 11 | 31 |
|
| 60 |
+
| GR-02 | Graph Theory | Shortest Paths / MST | 27 | 5 | 22 |
|
| 61 |
+
| GR-03 | Graph Theory | Flow / Matching | 31 | 5 | 26 |
|
| 62 |
+
| GR-04 | Graph Theory | Tree Algorithms | 11 | 0 | 11 |
|
| 63 |
+
| ST-01 | Strings | Pattern Matching / String Hashing | 4 | 2 | 2 |
|
| 64 |
+
| ST-02 | Strings | Trie / Suffix Structures | 10 | 2 | 8 |
|
| 65 |
+
| PA-01 | Algorithmic Paradigms | Greedy | 51 | 13 | 38 |
|
| 66 |
+
| PA-02 | Algorithmic Paradigms | Binary / Ternary Search | 12 | 2 | 10 |
|
| 67 |
+
| PA-03 | Algorithmic Paradigms | Two Pointers / Sliding Window / Sweep Line | 16 | 2 | 14 |
|
| 68 |
+
| PA-04 | Algorithmic Paradigms | Divide & Conquer / Sqrt Decomposition | 8 | 1 | 7 |
|
| 69 |
+
| PA-05 | Algorithmic Paradigms | Brute Force / Search | 24 | 7 | 17 |
|
| 70 |
+
| AH-01 | Ad-hoc & Implementation | Ad-hoc / Observation / Case Work | 69 | 13 | 56 |
|
| 71 |
+
| AH-02 | Ad-hoc & Implementation | Constructive | 3 | 1 | 2 |
|
| 72 |
+
| AH-03 | Ad-hoc & Implementation | Implementation / Simulation | 3 | 2 | 1 |
|
| 73 |
+
| | | **Total** | **967** | **157** | **810** |
|
| 74 |
+
|
| 75 |
+
The 31st category, AH-04 (Interactive), is never a primary label. It appears only as a
|
| 76 |
+
secondary label, on the 4 interactive ICPC problems. `categories.json` lists every category
|
| 77 |
+
with its problem ids. It also gives `any_label_count`, the number of problems that carry
|
| 78 |
+
the category at any position.
|
| 79 |
+
|
| 80 |
+
### How the labels were made
|
| 81 |
+
|
| 82 |
+
The labels come from an LLM; no human assigned them.
|
| 83 |
+
|
| 84 |
+
1. **Labeling.** GPT-6-Astra read each problem's statement, editorial and reference
|
| 85 |
+
solution, along with the taxonomy and its boundary rules. It returned 1–3 category ids.
|
| 86 |
+
2. **Voting.** Each problem was sampled 3 times, with the category order shuffled between
|
| 87 |
+
samples, and the majority vote was kept.
|
| 88 |
+
3. **Adjudication.** Where the 3 samples disagreed (160 problems), a second model (Claude)
|
| 89 |
+
chose the final set from the samples and the problem.
|
| 90 |
+
|
| 91 |
+
The `label_source` field records which path a problem took: `model_unanimous` (807
|
| 92 |
+
problems) or `adjudicated` (160). Label counts per problem: 193 problems have 1 label, 509
|
| 93 |
+
have 2 and 265 have 3.
|
| 94 |
+
|
| 95 |
+
## The problems
|
| 96 |
+
|
| 97 |
+
### ICPC World Finals (157)
|
| 98 |
+
|
| 99 |
+
The source is every World Finals problem from 2011 to 2025 in the archive, except:
|
| 100 |
+
|
| 101 |
+
- **9 problems that accept several correct answers but have no checker**: 2012/E,
|
| 102 |
+
2014/A, 2014/I, 2015/E, 2017/G, 2017/J, 2017/L, 2018/H and 2018/K. Comparing a
|
| 103 |
+
submission's output against the answer file would reject correct submissions.
|
| 104 |
+
- **3 problems whose archive reference solution was wrong**: 2019/B, 2020/K and 2020/L.
|
| 105 |
+
- **5 problems shared by WF 2022 and WF 2023**: Turning Red, Bridging the Gap, Carl's
|
| 106 |
+
Vacation, Three Kinds of Dice and Riddle of the Sphinx. They have identical test data and
|
| 107 |
+
references, and each is kept once, as its 2023 copy.
|
| 108 |
+
|
| 109 |
+
| File | What it is |
|
| 110 |
+
|---|---|
|
| 111 |
+
| `statement.pdf` | the official statement |
|
| 112 |
+
| `statement.txt` | the PDF's text, checked line by line against the PDF and corrected (superscripts, ≠, fractions, floor/ceil, formulas) |
|
| 113 |
+
| `page.html` | the archive page |
|
| 114 |
+
| `solution.cpp`, `solution.tex` | the reference solution and its write-up (observations, algorithm, proof, complexity). These are the official archive's for 70 problems (2019–2025). For the other 87, mostly 2011–2018, the archive serves only a template. Their solution was written by GPT-6-Astra, accepted on the full official data, and the write-up was then written in the archive's `solution.tex` format. `solution_source` in the manifest says which. |
|
| 115 |
+
| `meta.json` | year, letter, title, slug and page range in the contest PDF |
|
| 116 |
+
| `data/` | official test data: `sample-*` and `secret-*` `.in`/`.ans`, plus sample figures and descriptions, and testing tools for the interactive problems |
|
| 117 |
+
|
| 118 |
+
### AtCoder (810)
|
| 119 |
+
|
| 120 |
+
The source is ABC, ARC and AGC tasks with an estimated difficulty of at least 1200 (from
|
| 121 |
+
AtCoder Problems) and an English editorial: 477 ABC, 259 ARC and 74 AGC, with difficulty
|
| 122 |
+
from 1202 to 4310 (median 2150).
|
| 123 |
+
|
| 124 |
+
Only tasks that AtCoder judges by exact, case-sensitive token comparison are kept. That
|
| 125 |
+
drops:
|
| 126 |
+
|
| 127 |
+
- interactive tasks;
|
| 128 |
+
- tasks with a floating-point tolerance;
|
| 129 |
+
- tasks that accept several answers, including 8 construction tasks found while writing
|
| 130 |
+
references;
|
| 131 |
+
- tasks with case-insensitive checkers.
|
| 132 |
+
|
| 133 |
+
| File | What it is |
|
| 134 |
+
|---|---|
|
| 135 |
+
| `statement.md` | the English task page in Markdown with LaTeX; the samples are part of it |
|
| 136 |
+
| `editorial.md` | the official English editorial with all code removed (programs, pseudocode, submission links) |
|
| 137 |
+
| `solution.cpp` | C++ reference, accepted on every test: 233 are the editorial's own code, 577 were written by GPT-6-Astra from the editorial. The header comment and `solution_source` say which. |
|
| 138 |
+
| `meta.json` | task id, contest, URL, estimated difficulty, score, limits, editorial URL |
|
| 139 |
+
| `data/` | official test data, `N.in` / `N.out`. There is no sample/secret split; the samples are among the numbered tests. |
|
| 140 |
+
|
| 141 |
+
278 of the AtCoder references `#include <atcoder/...>`. To compile them, put the
|
| 142 |
+
[AtCoder Library](https://github.com/atcoder/ac-library) on the include path, as
|
| 143 |
+
AtCoder's own judge does.
|
| 144 |
+
|
| 145 |
+
## Judging
|
| 146 |
+
|
| 147 |
+
Each problem directory has a `judge.json`:
|
| 148 |
+
|
| 149 |
+
```json
|
| 150 |
+
{
|
| 151 |
+
"time_limit_s": 4.0,
|
| 152 |
+
"time_limit_source": "statement",
|
| 153 |
+
"memory_mb": 2048,
|
| 154 |
+
"memory_source": "default (the statement gives none)",
|
| 155 |
+
"mode": "float",
|
| 156 |
+
"validator_flags": "float_absolute_tolerance 0.001 float_relative_tolerance 1e-05",
|
| 157 |
+
"comparison": "Kattis default output validator: token-wise, whitespace- and case-insensitive, numbers within the flagged tolerance",
|
| 158 |
+
"validator": null,
|
| 159 |
+
"tests_dir": "data",
|
| 160 |
+
"answer_suffix": ".ans",
|
| 161 |
+
"n_sample": 2,
|
| 162 |
+
"n_secret": 44
|
| 163 |
+
}
|
| 164 |
+
```
|
| 165 |
+
|
| 166 |
+
| `mode` | Problems | How |
|
| 167 |
+
|---|---:|---|
|
| 168 |
+
| `exact` | 911 | Token comparison of the output against the answer file. ICPC uses the Kattis default validator, which ignores case. AtCoder is case-sensitive (`validator_flags: case_sensitive`). |
|
| 169 |
+
| `float` | 40 | Kattis default validator with the tolerance in `validator_flags`. When both an absolute and a relative bound are given, a difference within either one is accepted. |
|
| 170 |
+
| `custom` | 12 | ICPC problems with more than one correct answer. `validator` names a checker under `problems/_verify/checkers/`. It uses the Kattis output-validator protocol: argv `input answer feedback_dir`, the submission's output on stdin, exit 42 for accept and 43 for reject. |
|
| 171 |
+
| `interactive` | 4 | ICPC interactive problems. `validator` names the interactor under `problems/_verify/interactors/`. It is connected to the submission over a pair of pipes and uses the same exit codes. |
|
| 172 |
+
|
| 173 |
+
Where the limits come from:
|
| 174 |
+
|
| 175 |
+
- **AtCoder**: time and memory limits come from the task page.
|
| 176 |
+
- **ICPC, time**: the time limit is parsed from the statement. 22 statements (all of 2011 and
|
| 177 |
+
2012) print none and use a default of 10 s.
|
| 178 |
+
- **ICPC, memory**: World Finals statements state no memory limit, so 2048 MB is used.
|
| 179 |
+
|
| 180 |
+
The checkers import `problems/_verify/checkers/wfcheck.py`, so keep the `_verify/`
|
| 181 |
+
tree together. `problems/_verify/judging.json` records the non-default modes, keyed by
|
| 182 |
+
`<year>/<letter>`.
|
| 183 |
+
|
| 184 |
+
## Contents
|
| 185 |
+
|
| 186 |
+
```
|
| 187 |
+
README.md
|
| 188 |
+
manifest.csv # one row per problem (the `manifest` config); list fields joined with ';'
|
| 189 |
+
manifest.jsonl # the same records as JSON
|
| 190 |
+
categories.json # category -> family, name, counts, any_label_count, problem ids
|
| 191 |
+
taxonomy.md # the 31 categories, what each includes, and the boundary rules
|
| 192 |
+
|
| 193 |
+
problems/<CAT>/ICPC_WF/<year>/<L-slug>/
|
| 194 |
+
statement.txt statement.pdf page.html solution.cpp solution.tex meta.json judge.json
|
| 195 |
+
data/ # sample-*.in|.ans, secret-*.in|.ans
|
| 196 |
+
problems/<CAT>/Atcoder/<task_id>/
|
| 197 |
+
statement.md editorial.md solution.cpp meta.json judge.json
|
| 198 |
+
data/ # 1.in|.out, 2.in|.out, ...
|
| 199 |
+
problems/_verify/
|
| 200 |
+
judging.json checkers/ interactors/
|
| 201 |
+
```
|
| 202 |
+
|
| 203 |
+
Manifest fields:
|
| 204 |
+
|
| 205 |
+
| Field | Meaning |
|
| 206 |
+
|---|---|
|
| 207 |
+
| `id` | `ICPC_WF/<year>/<L-slug>` or `Atcoder/<task_id>` |
|
| 208 |
+
| `source` | `ICPC_WF` or `Atcoder` |
|
| 209 |
+
| `primary_category`, `primary_category_name`, `family` | the problem's primary category |
|
| 210 |
+
| `labels`, `label_names` | all 1–3 labels, in order |
|
| 211 |
+
| `label_source` | `model_unanimous` or `adjudicated` (see above) |
|
| 212 |
+
| `title`, `year`, `letter`, `contest`, `contest_type`, `difficulty`, `url` | where the problem comes from; `difficulty` is AtCoder only |
|
| 213 |
+
| `solution_source`, `editorial_source` | official or model-written (see above) |
|
| 214 |
+
| `time_limit_s`, `memory_mb`, `judge_mode`, `n_tests` | from `judge.json` |
|
| 215 |
+
| `problem_dir` | path of the problem's directory |
|
| 216 |
+
|
| 217 |
+
## Download
|
| 218 |
+
|
| 219 |
+
The dataset is about 58 GB, almost all of it AtCoder test data. To fetch one category, or
|
| 220 |
+
everything except test data:
|
| 221 |
+
|
| 222 |
+
```python
|
| 223 |
+
from huggingface_hub import snapshot_download
|
| 224 |
+
|
| 225 |
+
# the top-level files and one category, test data included
|
| 226 |
+
snapshot_download("xupy21/Category_Data", repo_type="dataset",
|
| 227 |
+
allow_patterns=["README.md", "manifest.*", "categories.json", "taxonomy.md",
|
| 228 |
+
"problems/MA-07/*", "problems/_verify/*"])
|
| 229 |
+
|
| 230 |
+
# everything except test data: statements, editorials, references, judge.json
|
| 231 |
+
snapshot_download("xupy21/Category_Data", repo_type="dataset",
|
| 232 |
+
ignore_patterns=["*/data/*"])
|
| 233 |
+
```
|
| 234 |
+
|
| 235 |
+
## Sources
|
| 236 |
+
|
| 237 |
+
The statements, editorials and test data come from the ICPC World Finals archive and from
|
| 238 |
+
AtCoder (atcoder.jp); their rights stay with ICPC, AtCoder and the problem authors. The
|
| 239 |
+
model-written references and write-ups are marked as such in `solution_source` and
|
| 240 |
+
`editorial_source`.
|
categories.json
ADDED
|
@@ -0,0 +1,1278 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"MA-01": {
|
| 3 |
+
"family": "Mathematics",
|
| 4 |
+
"category": "Math Reasoning / Formulas",
|
| 5 |
+
"count": 91,
|
| 6 |
+
"icpc": 18,
|
| 7 |
+
"atcoder": 73,
|
| 8 |
+
"any_label_count": 222,
|
| 9 |
+
"problems": [
|
| 10 |
+
"Atcoder/abc176_e",
|
| 11 |
+
"Atcoder/abc190_f",
|
| 12 |
+
"Atcoder/abc196_e",
|
| 13 |
+
"Atcoder/abc200_f",
|
| 14 |
+
"Atcoder/abc219_f",
|
| 15 |
+
"Atcoder/abc227_d",
|
| 16 |
+
"Atcoder/abc229_g",
|
| 17 |
+
"Atcoder/abc240_f",
|
| 18 |
+
"Atcoder/abc242_d",
|
| 19 |
+
"Atcoder/abc255_e",
|
| 20 |
+
"Atcoder/abc256_f",
|
| 21 |
+
"Atcoder/abc261_f",
|
| 22 |
+
"Atcoder/abc262_e",
|
| 23 |
+
"Atcoder/abc269_f",
|
| 24 |
+
"Atcoder/abc272_e",
|
| 25 |
+
"Atcoder/abc288_d",
|
| 26 |
+
"Atcoder/abc293_f",
|
| 27 |
+
"Atcoder/abc296_f",
|
| 28 |
+
"Atcoder/abc302_g",
|
| 29 |
+
"Atcoder/abc303_f",
|
| 30 |
+
"Atcoder/abc321_e",
|
| 31 |
+
"Atcoder/abc322_g",
|
| 32 |
+
"Atcoder/abc323_f",
|
| 33 |
+
"Atcoder/abc324_g",
|
| 34 |
+
"Atcoder/abc351_e",
|
| 35 |
+
"Atcoder/abc353_f",
|
| 36 |
+
"Atcoder/abc356_e",
|
| 37 |
+
"Atcoder/abc361_e",
|
| 38 |
+
"Atcoder/abc368_g",
|
| 39 |
+
"Atcoder/agc048_b",
|
| 40 |
+
"Atcoder/agc052_c",
|
| 41 |
+
"Atcoder/agc052_e",
|
| 42 |
+
"Atcoder/agc054_f",
|
| 43 |
+
"Atcoder/agc055_d",
|
| 44 |
+
"Atcoder/agc058_e",
|
| 45 |
+
"Atcoder/agc059_a",
|
| 46 |
+
"Atcoder/agc065_a",
|
| 47 |
+
"Atcoder/agc065_c",
|
| 48 |
+
"Atcoder/arc109_d",
|
| 49 |
+
"Atcoder/arc111_e",
|
| 50 |
+
"Atcoder/arc119_c",
|
| 51 |
+
"Atcoder/arc119_e",
|
| 52 |
+
"Atcoder/arc120_c",
|
| 53 |
+
"Atcoder/arc123_e",
|
| 54 |
+
"Atcoder/arc124_d",
|
| 55 |
+
"Atcoder/arc125_b",
|
| 56 |
+
"Atcoder/arc126_e",
|
| 57 |
+
"Atcoder/arc126_f",
|
| 58 |
+
"Atcoder/arc130_f",
|
| 59 |
+
"Atcoder/arc133_c",
|
| 60 |
+
"Atcoder/arc135_e",
|
| 61 |
+
"Atcoder/arc135_f",
|
| 62 |
+
"Atcoder/arc136_b",
|
| 63 |
+
"Atcoder/arc136_c",
|
| 64 |
+
"Atcoder/arc139_b",
|
| 65 |
+
"Atcoder/arc142_f",
|
| 66 |
+
"Atcoder/arc147_c",
|
| 67 |
+
"Atcoder/arc150_b",
|
| 68 |
+
"Atcoder/arc152_b",
|
| 69 |
+
"Atcoder/arc152_f",
|
| 70 |
+
"Atcoder/arc154_e",
|
| 71 |
+
"Atcoder/arc155_a",
|
| 72 |
+
"Atcoder/arc155_b",
|
| 73 |
+
"Atcoder/arc157_c",
|
| 74 |
+
"Atcoder/arc158_c",
|
| 75 |
+
"Atcoder/arc164_d",
|
| 76 |
+
"Atcoder/arc172_b",
|
| 77 |
+
"Atcoder/arc173_b",
|
| 78 |
+
"Atcoder/arc174_d",
|
| 79 |
+
"Atcoder/arc178_c",
|
| 80 |
+
"Atcoder/arc181_d",
|
| 81 |
+
"Atcoder/arc182_d",
|
| 82 |
+
"Atcoder/arc182_e",
|
| 83 |
+
"ICPC_WF/2011/A-to-add-or-to-multiply",
|
| 84 |
+
"ICPC_WF/2011/I-mummy-madness",
|
| 85 |
+
"ICPC_WF/2012/B-curvy-little-bottles",
|
| 86 |
+
"ICPC_WF/2013/B-hey-better-bettor",
|
| 87 |
+
"ICPC_WF/2015/G-pipe-stream",
|
| 88 |
+
"ICPC_WF/2015/H-qanat",
|
| 89 |
+
"ICPC_WF/2016/E-forever-young",
|
| 90 |
+
"ICPC_WF/2017/H-scenery",
|
| 91 |
+
"ICPC_WF/2018/E-getting-a-jump-on-crime",
|
| 92 |
+
"ICPC_WF/2019/D-circular-dna",
|
| 93 |
+
"ICPC_WF/2019/J-miniature-golf",
|
| 94 |
+
"ICPC_WF/2020/A-cardiology",
|
| 95 |
+
"ICPC_WF/2020/G-opportunity-cost",
|
| 96 |
+
"ICPC_WF/2021/B-dungeon-crawler",
|
| 97 |
+
"ICPC_WF/2021/C-fair-division",
|
| 98 |
+
"ICPC_WF/2025/C-bride-of-pipe-stream",
|
| 99 |
+
"ICPC_WF/2025/J-stacking-cups",
|
| 100 |
+
"ICPC_WF/2025/K-treasure-map"
|
| 101 |
+
]
|
| 102 |
+
},
|
| 103 |
+
"MA-02": {
|
| 104 |
+
"family": "Mathematics",
|
| 105 |
+
"category": "Number Theory",
|
| 106 |
+
"count": 46,
|
| 107 |
+
"icpc": 2,
|
| 108 |
+
"atcoder": 44,
|
| 109 |
+
"any_label_count": 84,
|
| 110 |
+
"problems": [
|
| 111 |
+
"Atcoder/abc186_e",
|
| 112 |
+
"Atcoder/abc191_f",
|
| 113 |
+
"Atcoder/abc193_e",
|
| 114 |
+
"Atcoder/abc206_e",
|
| 115 |
+
"Atcoder/abc212_g",
|
| 116 |
+
"Atcoder/abc222_g",
|
| 117 |
+
"Atcoder/abc227_g",
|
| 118 |
+
"Atcoder/abc228_e",
|
| 119 |
+
"Atcoder/abc230_g",
|
| 120 |
+
"Atcoder/abc254_f",
|
| 121 |
+
"Atcoder/abc259_e",
|
| 122 |
+
"Atcoder/abc304_f",
|
| 123 |
+
"Atcoder/abc306_g",
|
| 124 |
+
"Atcoder/abc315_g",
|
| 125 |
+
"Atcoder/abc319_e",
|
| 126 |
+
"Atcoder/abc333_g",
|
| 127 |
+
"Atcoder/abc335_g",
|
| 128 |
+
"Atcoder/abc349_f",
|
| 129 |
+
"Atcoder/abc363_f",
|
| 130 |
+
"Atcoder/abc370_g",
|
| 131 |
+
"Atcoder/abc371_g",
|
| 132 |
+
"Atcoder/agc047_a",
|
| 133 |
+
"Atcoder/agc047_c",
|
| 134 |
+
"Atcoder/agc057_d",
|
| 135 |
+
"Atcoder/agc057_f",
|
| 136 |
+
"Atcoder/agc063_d",
|
| 137 |
+
"Atcoder/agc063_f",
|
| 138 |
+
"Atcoder/arc112_f",
|
| 139 |
+
"Atcoder/arc117_c",
|
| 140 |
+
"Atcoder/arc123_f",
|
| 141 |
+
"Atcoder/arc124_c",
|
| 142 |
+
"Atcoder/arc126_c",
|
| 143 |
+
"Atcoder/arc127_f",
|
| 144 |
+
"Atcoder/arc141_e",
|
| 145 |
+
"Atcoder/arc144_e",
|
| 146 |
+
"Atcoder/arc159_b",
|
| 147 |
+
"Atcoder/arc166_e",
|
| 148 |
+
"Atcoder/arc166_f",
|
| 149 |
+
"Atcoder/arc167_b",
|
| 150 |
+
"Atcoder/arc172_e",
|
| 151 |
+
"Atcoder/arc176_b",
|
| 152 |
+
"Atcoder/arc181_b",
|
| 153 |
+
"Atcoder/arc182_f",
|
| 154 |
+
"Atcoder/arc183_f",
|
| 155 |
+
"ICPC_WF/2019/K-traffic-blights",
|
| 156 |
+
"ICPC_WF/2020/M-trailing-digits"
|
| 157 |
+
]
|
| 158 |
+
},
|
| 159 |
+
"MA-03": {
|
| 160 |
+
"family": "Mathematics",
|
| 161 |
+
"category": "Combinatorics & Probability",
|
| 162 |
+
"count": 88,
|
| 163 |
+
"icpc": 4,
|
| 164 |
+
"atcoder": 84,
|
| 165 |
+
"any_label_count": 176,
|
| 166 |
+
"problems": [
|
| 167 |
+
"Atcoder/abc198_f",
|
| 168 |
+
"Atcoder/abc205_e",
|
| 169 |
+
"Atcoder/abc214_g",
|
| 170 |
+
"Atcoder/abc215_g",
|
| 171 |
+
"Atcoder/abc220_e",
|
| 172 |
+
"Atcoder/abc221_e",
|
| 173 |
+
"Atcoder/abc224_f",
|
| 174 |
+
"Atcoder/abc231_g",
|
| 175 |
+
"Atcoder/abc235_g",
|
| 176 |
+
"Atcoder/abc240_g",
|
| 177 |
+
"Atcoder/abc242_f",
|
| 178 |
+
"Atcoder/abc246_f",
|
| 179 |
+
"Atcoder/abc266_g",
|
| 180 |
+
"Atcoder/abc268_g",
|
| 181 |
+
"Atcoder/abc276_g",
|
| 182 |
+
"Atcoder/abc280_g",
|
| 183 |
+
"Atcoder/abc284_g",
|
| 184 |
+
"Atcoder/abc290_e",
|
| 185 |
+
"Atcoder/abc290_f",
|
| 186 |
+
"Atcoder/abc295_e",
|
| 187 |
+
"Atcoder/abc295_f",
|
| 188 |
+
"Atcoder/abc297_f",
|
| 189 |
+
"Atcoder/abc309_g",
|
| 190 |
+
"Atcoder/abc326_e",
|
| 191 |
+
"Atcoder/abc327_g",
|
| 192 |
+
"Atcoder/abc330_g",
|
| 193 |
+
"Atcoder/abc331_g",
|
| 194 |
+
"Atcoder/abc336_g",
|
| 195 |
+
"Atcoder/abc361_f",
|
| 196 |
+
"Atcoder/agc053_c",
|
| 197 |
+
"Atcoder/agc053_e",
|
| 198 |
+
"Atcoder/agc054_b",
|
| 199 |
+
"Atcoder/agc054_c",
|
| 200 |
+
"Atcoder/agc054_e",
|
| 201 |
+
"Atcoder/agc055_c",
|
| 202 |
+
"Atcoder/agc055_f",
|
| 203 |
+
"Atcoder/agc056_e",
|
| 204 |
+
"Atcoder/agc056_f",
|
| 205 |
+
"Atcoder/agc057_e",
|
| 206 |
+
"Atcoder/agc058_d",
|
| 207 |
+
"Atcoder/agc060_c",
|
| 208 |
+
"Atcoder/agc061_c",
|
| 209 |
+
"Atcoder/agc062_e",
|
| 210 |
+
"Atcoder/agc065_d",
|
| 211 |
+
"Atcoder/agc065_f",
|
| 212 |
+
"Atcoder/agc068_a",
|
| 213 |
+
"Atcoder/arc106_d",
|
| 214 |
+
"Atcoder/arc106_f",
|
| 215 |
+
"Atcoder/arc113_d",
|
| 216 |
+
"Atcoder/arc114_c",
|
| 217 |
+
"Atcoder/arc114_e",
|
| 218 |
+
"Atcoder/arc116_c",
|
| 219 |
+
"Atcoder/arc118_e",
|
| 220 |
+
"Atcoder/arc121_e",
|
| 221 |
+
"Atcoder/arc124_f",
|
| 222 |
+
"Atcoder/arc128_f",
|
| 223 |
+
"Atcoder/arc133_e",
|
| 224 |
+
"Atcoder/arc134_c",
|
| 225 |
+
"Atcoder/arc138_e",
|
| 226 |
+
"Atcoder/arc139_d",
|
| 227 |
+
"Atcoder/arc140_d",
|
| 228 |
+
"Atcoder/arc140_f",
|
| 229 |
+
"Atcoder/arc143_b",
|
| 230 |
+
"Atcoder/arc144_d",
|
| 231 |
+
"Atcoder/arc145_c",
|
| 232 |
+
"Atcoder/arc147_d",
|
| 233 |
+
"Atcoder/arc148_e",
|
| 234 |
+
"Atcoder/arc150_d",
|
| 235 |
+
"Atcoder/arc151_b",
|
| 236 |
+
"Atcoder/arc156_b",
|
| 237 |
+
"Atcoder/arc156_e",
|
| 238 |
+
"Atcoder/arc160_b",
|
| 239 |
+
"Atcoder/arc160_d",
|
| 240 |
+
"Atcoder/arc162_d",
|
| 241 |
+
"Atcoder/arc163_d",
|
| 242 |
+
"Atcoder/arc165_e",
|
| 243 |
+
"Atcoder/arc167_c",
|
| 244 |
+
"Atcoder/arc168_c",
|
| 245 |
+
"Atcoder/arc171_c",
|
| 246 |
+
"Atcoder/arc171_e",
|
| 247 |
+
"Atcoder/arc174_c",
|
| 248 |
+
"Atcoder/arc174_e",
|
| 249 |
+
"Atcoder/arc177_d",
|
| 250 |
+
"Atcoder/arc178_b",
|
| 251 |
+
"ICPC_WF/2017/K-tarot-sham-boast",
|
| 252 |
+
"ICPC_WF/2018/D-gem-island",
|
| 253 |
+
"ICPC_WF/2022/Q-doing-the-container-shuffle",
|
| 254 |
+
"ICPC_WF/2023/B-schedule"
|
| 255 |
+
]
|
| 256 |
+
},
|
| 257 |
+
"MA-04": {
|
| 258 |
+
"family": "Mathematics",
|
| 259 |
+
"category": "Game Theory",
|
| 260 |
+
"count": 36,
|
| 261 |
+
"icpc": 4,
|
| 262 |
+
"atcoder": 32,
|
| 263 |
+
"any_label_count": 40,
|
| 264 |
+
"problems": [
|
| 265 |
+
"Atcoder/abc195_e",
|
| 266 |
+
"Atcoder/abc201_d",
|
| 267 |
+
"Atcoder/abc206_f",
|
| 268 |
+
"Atcoder/abc218_g",
|
| 269 |
+
"Atcoder/abc255_g",
|
| 270 |
+
"Atcoder/abc270_d",
|
| 271 |
+
"Atcoder/abc278_f",
|
| 272 |
+
"Atcoder/abc297_g",
|
| 273 |
+
"Atcoder/abc349_e",
|
| 274 |
+
"Atcoder/abc354_e",
|
| 275 |
+
"Atcoder/agc048_d",
|
| 276 |
+
"Atcoder/agc056_d",
|
| 277 |
+
"Atcoder/agc069_b",
|
| 278 |
+
"Atcoder/arc105_d",
|
| 279 |
+
"Atcoder/arc105_e",
|
| 280 |
+
"Atcoder/arc109_e",
|
| 281 |
+
"Atcoder/arc112_c",
|
| 282 |
+
"Atcoder/arc116_f",
|
| 283 |
+
"Atcoder/arc134_e",
|
| 284 |
+
"Atcoder/arc137_c",
|
| 285 |
+
"Atcoder/arc143_c",
|
| 286 |
+
"Atcoder/arc144_f",
|
| 287 |
+
"Atcoder/arc148_d",
|
| 288 |
+
"Atcoder/arc151_c",
|
| 289 |
+
"Atcoder/arc151_f",
|
| 290 |
+
"Atcoder/arc155_d",
|
| 291 |
+
"Atcoder/arc162_c",
|
| 292 |
+
"Atcoder/arc163_e",
|
| 293 |
+
"Atcoder/arc164_f",
|
| 294 |
+
"Atcoder/arc168_b",
|
| 295 |
+
"Atcoder/arc170_d",
|
| 296 |
+
"Atcoder/arc174_f",
|
| 297 |
+
"ICPC_WF/2012/L-takeover-wars",
|
| 298 |
+
"ICPC_WF/2014/D-game-strategy",
|
| 299 |
+
"ICPC_WF/2020/H-qc-qc",
|
| 300 |
+
"ICPC_WF/2025/B-blackboard-game"
|
| 301 |
+
]
|
| 302 |
+
},
|
| 303 |
+
"MA-05": {
|
| 304 |
+
"family": "Mathematics",
|
| 305 |
+
"category": "Bitwise / XOR",
|
| 306 |
+
"count": 20,
|
| 307 |
+
"icpc": 1,
|
| 308 |
+
"atcoder": 19,
|
| 309 |
+
"any_label_count": 34,
|
| 310 |
+
"problems": [
|
| 311 |
+
"Atcoder/abc201_e",
|
| 312 |
+
"Atcoder/abc223_h",
|
| 313 |
+
"Atcoder/abc249_g",
|
| 314 |
+
"Atcoder/abc258_g",
|
| 315 |
+
"Atcoder/abc261_e",
|
| 316 |
+
"Atcoder/abc281_f",
|
| 317 |
+
"Atcoder/abc283_g",
|
| 318 |
+
"Atcoder/abc304_g",
|
| 319 |
+
"Atcoder/abc308_g",
|
| 320 |
+
"Atcoder/abc348_f",
|
| 321 |
+
"Atcoder/arc122_d",
|
| 322 |
+
"Atcoder/arc127_c",
|
| 323 |
+
"Atcoder/arc127_d",
|
| 324 |
+
"Atcoder/arc135_c",
|
| 325 |
+
"Atcoder/arc141_b",
|
| 326 |
+
"Atcoder/arc146_b",
|
| 327 |
+
"Atcoder/arc146_c",
|
| 328 |
+
"Atcoder/arc152_e",
|
| 329 |
+
"Atcoder/arc155_e",
|
| 330 |
+
"ICPC_WF/2024/H-maxwells-demon"
|
| 331 |
+
]
|
| 332 |
+
},
|
| 333 |
+
"MA-06": {
|
| 334 |
+
"family": "Mathematics",
|
| 335 |
+
"category": "Linear Algebra / Polynomials",
|
| 336 |
+
"count": 39,
|
| 337 |
+
"icpc": 7,
|
| 338 |
+
"atcoder": 32,
|
| 339 |
+
"any_label_count": 54,
|
| 340 |
+
"problems": [
|
| 341 |
+
"Atcoder/abc189_e",
|
| 342 |
+
"Atcoder/abc196_f",
|
| 343 |
+
"Atcoder/abc208_f",
|
| 344 |
+
"Atcoder/abc212_h",
|
| 345 |
+
"Atcoder/abc213_h",
|
| 346 |
+
"Atcoder/abc216_h",
|
| 347 |
+
"Atcoder/abc220_h",
|
| 348 |
+
"Atcoder/abc222_h",
|
| 349 |
+
"Atcoder/abc225_h",
|
| 350 |
+
"Atcoder/abc230_h",
|
| 351 |
+
"Atcoder/abc288_g",
|
| 352 |
+
"Atcoder/abc291_g",
|
| 353 |
+
"Atcoder/abc323_g",
|
| 354 |
+
"Atcoder/abc352_g",
|
| 355 |
+
"Atcoder/abc357_g",
|
| 356 |
+
"Atcoder/abc367_g",
|
| 357 |
+
"Atcoder/agc060_d",
|
| 358 |
+
"Atcoder/agc061_f",
|
| 359 |
+
"Atcoder/agc063_e",
|
| 360 |
+
"Atcoder/agc069_e",
|
| 361 |
+
"Atcoder/arc113_f",
|
| 362 |
+
"Atcoder/arc118_f",
|
| 363 |
+
"Atcoder/arc129_f",
|
| 364 |
+
"Atcoder/arc134_f",
|
| 365 |
+
"Atcoder/arc136_f",
|
| 366 |
+
"Atcoder/arc145_f",
|
| 367 |
+
"Atcoder/arc147_f",
|
| 368 |
+
"Atcoder/arc151_d",
|
| 369 |
+
"Atcoder/arc154_f",
|
| 370 |
+
"Atcoder/arc156_d",
|
| 371 |
+
"Atcoder/arc163_f",
|
| 372 |
+
"Atcoder/arc167_f",
|
| 373 |
+
"ICPC_WF/2014/H-pachinko",
|
| 374 |
+
"ICPC_WF/2015/J-tile-cutting",
|
| 375 |
+
"ICPC_WF/2016/I-road-times",
|
| 376 |
+
"ICPC_WF/2020/N-whats-our-vector-victor",
|
| 377 |
+
"ICPC_WF/2021/G-mosaic-browsing",
|
| 378 |
+
"ICPC_WF/2022/Z-archaeological-recovery",
|
| 379 |
+
"ICPC_WF/2023/A-riddle-of-the-sphinx"
|
| 380 |
+
]
|
| 381 |
+
},
|
| 382 |
+
"MA-07": {
|
| 383 |
+
"family": "Mathematics",
|
| 384 |
+
"category": "Geometry",
|
| 385 |
+
"count": 31,
|
| 386 |
+
"icpc": 23,
|
| 387 |
+
"atcoder": 8,
|
| 388 |
+
"any_label_count": 44,
|
| 389 |
+
"problems": [
|
| 390 |
+
"Atcoder/abc191_d",
|
| 391 |
+
"Atcoder/abc207_d",
|
| 392 |
+
"Atcoder/abc220_g",
|
| 393 |
+
"Atcoder/abc248_e",
|
| 394 |
+
"Atcoder/abc251_g",
|
| 395 |
+
"Atcoder/abc296_g",
|
| 396 |
+
"Atcoder/abc301_g",
|
| 397 |
+
"Atcoder/abc377_f",
|
| 398 |
+
"ICPC_WF/2011/G-magic-sticks",
|
| 399 |
+
"ICPC_WF/2011/K-trash-removal",
|
| 400 |
+
"ICPC_WF/2012/H-room-service",
|
| 401 |
+
"ICPC_WF/2012/J-shortest-flight-path",
|
| 402 |
+
"ICPC_WF/2013/G-map-tiles",
|
| 403 |
+
"ICPC_WF/2013/J-pollution-solution",
|
| 404 |
+
"ICPC_WF/2014/C-crane-balancing",
|
| 405 |
+
"ICPC_WF/2014/F-messenger",
|
| 406 |
+
"ICPC_WF/2014/L-wire-crossing",
|
| 407 |
+
"ICPC_WF/2015/B-asteroids",
|
| 408 |
+
"ICPC_WF/2016/G-oil",
|
| 409 |
+
"ICPC_WF/2016/H-polygonal-puzzle",
|
| 410 |
+
"ICPC_WF/2016/J-spin-doctor",
|
| 411 |
+
"ICPC_WF/2017/A-airport-construction",
|
| 412 |
+
"ICPC_WF/2018/G-panda-preserve",
|
| 413 |
+
"ICPC_WF/2020/C-domes",
|
| 414 |
+
"ICPC_WF/2020/F-ley-lines",
|
| 415 |
+
"ICPC_WF/2021/D-guardians-of-the-gallery",
|
| 416 |
+
"ICPC_WF/2021/F-islands-from-the-sky",
|
| 417 |
+
"ICPC_WF/2023/C-three-kinds-of-dice",
|
| 418 |
+
"ICPC_WF/2023/D-carls-vacation",
|
| 419 |
+
"ICPC_WF/2023/I-waterworld",
|
| 420 |
+
"ICPC_WF/2025/G-lava-moat"
|
| 421 |
+
]
|
| 422 |
+
},
|
| 423 |
+
"DS-01": {
|
| 424 |
+
"family": "Data Structures",
|
| 425 |
+
"category": "Prefix Sums / Difference Arrays",
|
| 426 |
+
"count": 9,
|
| 427 |
+
"icpc": 2,
|
| 428 |
+
"atcoder": 7,
|
| 429 |
+
"any_label_count": 46,
|
| 430 |
+
"problems": [
|
| 431 |
+
"Atcoder/abc187_e",
|
| 432 |
+
"Atcoder/abc260_g",
|
| 433 |
+
"Atcoder/abc268_e",
|
| 434 |
+
"Atcoder/abc331_d",
|
| 435 |
+
"Atcoder/abc338_d",
|
| 436 |
+
"Atcoder/arc129_d",
|
| 437 |
+
"Atcoder/arc136_d",
|
| 438 |
+
"ICPC_WF/2011/E-coffee-central",
|
| 439 |
+
"ICPC_WF/2020/E-landscape-generator"
|
| 440 |
+
]
|
| 441 |
+
},
|
| 442 |
+
"DS-02": {
|
| 443 |
+
"family": "Data Structures",
|
| 444 |
+
"category": "Hash / Set / Map",
|
| 445 |
+
"count": 3,
|
| 446 |
+
"icpc": 0,
|
| 447 |
+
"atcoder": 3,
|
| 448 |
+
"any_label_count": 19,
|
| 449 |
+
"problems": [
|
| 450 |
+
"Atcoder/abc281_e",
|
| 451 |
+
"Atcoder/abc306_e",
|
| 452 |
+
"Atcoder/abc367_f"
|
| 453 |
+
]
|
| 454 |
+
},
|
| 455 |
+
"DS-03": {
|
| 456 |
+
"family": "Data Structures",
|
| 457 |
+
"category": "Stack / Queue / Heap",
|
| 458 |
+
"count": 4,
|
| 459 |
+
"icpc": 1,
|
| 460 |
+
"atcoder": 3,
|
| 461 |
+
"any_label_count": 10,
|
| 462 |
+
"problems": [
|
| 463 |
+
"Atcoder/abc228_f",
|
| 464 |
+
"Atcoder/abc338_e",
|
| 465 |
+
"Atcoder/abc359_e",
|
| 466 |
+
"ICPC_WF/2013/I-pirate-chest"
|
| 467 |
+
]
|
| 468 |
+
},
|
| 469 |
+
"DS-04": {
|
| 470 |
+
"family": "Data Structures",
|
| 471 |
+
"category": "Segment Tree / Fenwick / BST",
|
| 472 |
+
"count": 20,
|
| 473 |
+
"icpc": 0,
|
| 474 |
+
"atcoder": 20,
|
| 475 |
+
"any_label_count": 54,
|
| 476 |
+
"problems": [
|
| 477 |
+
"Atcoder/abc186_f",
|
| 478 |
+
"Atcoder/abc223_f",
|
| 479 |
+
"Atcoder/abc265_g",
|
| 480 |
+
"Atcoder/abc273_e",
|
| 481 |
+
"Atcoder/abc276_f",
|
| 482 |
+
"Atcoder/abc283_f",
|
| 483 |
+
"Atcoder/abc306_f",
|
| 484 |
+
"Atcoder/abc322_f",
|
| 485 |
+
"Atcoder/abc332_f",
|
| 486 |
+
"Atcoder/abc339_g",
|
| 487 |
+
"Atcoder/abc343_f",
|
| 488 |
+
"Atcoder/abc346_g",
|
| 489 |
+
"Atcoder/abc351_f",
|
| 490 |
+
"Atcoder/abc356_f",
|
| 491 |
+
"Atcoder/abc357_f",
|
| 492 |
+
"Atcoder/abc365_f",
|
| 493 |
+
"Atcoder/abc371_f",
|
| 494 |
+
"Atcoder/arc165_f",
|
| 495 |
+
"Atcoder/arc179_e",
|
| 496 |
+
"Atcoder/arc180_d"
|
| 497 |
+
]
|
| 498 |
+
},
|
| 499 |
+
"DS-05": {
|
| 500 |
+
"family": "Data Structures",
|
| 501 |
+
"category": "DSU / Union-Find",
|
| 502 |
+
"count": 15,
|
| 503 |
+
"icpc": 2,
|
| 504 |
+
"atcoder": 13,
|
| 505 |
+
"any_label_count": 35,
|
| 506 |
+
"problems": [
|
| 507 |
+
"Atcoder/abc183_f",
|
| 508 |
+
"Atcoder/abc214_d",
|
| 509 |
+
"Atcoder/abc238_e",
|
| 510 |
+
"Atcoder/abc264_e",
|
| 511 |
+
"Atcoder/abc279_f",
|
| 512 |
+
"Atcoder/abc295_g",
|
| 513 |
+
"Atcoder/abc314_f",
|
| 514 |
+
"Atcoder/abc328_f",
|
| 515 |
+
"Atcoder/abc329_f",
|
| 516 |
+
"Atcoder/agc059_c",
|
| 517 |
+
"Atcoder/arc107_c",
|
| 518 |
+
"Atcoder/arc111_b",
|
| 519 |
+
"Atcoder/arc112_d",
|
| 520 |
+
"ICPC_WF/2018/B-comma-sprinkler",
|
| 521 |
+
"ICPC_WF/2025/E-delivery-service"
|
| 522 |
+
]
|
| 523 |
+
},
|
| 524 |
+
"DP-01": {
|
| 525 |
+
"family": "Dynamic Programming",
|
| 526 |
+
"category": "Linear / Sequence DP",
|
| 527 |
+
"count": 91,
|
| 528 |
+
"icpc": 10,
|
| 529 |
+
"atcoder": 81,
|
| 530 |
+
"any_label_count": 195,
|
| 531 |
+
"problems": [
|
| 532 |
+
"Atcoder/abc175_e",
|
| 533 |
+
"Atcoder/abc180_f",
|
| 534 |
+
"Atcoder/abc185_e",
|
| 535 |
+
"Atcoder/abc194_f",
|
| 536 |
+
"Atcoder/abc197_e",
|
| 537 |
+
"Atcoder/abc202_f",
|
| 538 |
+
"Atcoder/abc203_f",
|
| 539 |
+
"Atcoder/abc208_e",
|
| 540 |
+
"Atcoder/abc209_f",
|
| 541 |
+
"Atcoder/abc210_d",
|
| 542 |
+
"Atcoder/abc214_f",
|
| 543 |
+
"Atcoder/abc217_f",
|
| 544 |
+
"Atcoder/abc217_g",
|
| 545 |
+
"Atcoder/abc219_h",
|
| 546 |
+
"Atcoder/abc226_h",
|
| 547 |
+
"Atcoder/abc227_e",
|
| 548 |
+
"Atcoder/abc227_f",
|
| 549 |
+
"Atcoder/abc229_f",
|
| 550 |
+
"Atcoder/abc230_f",
|
| 551 |
+
"Atcoder/abc231_e",
|
| 552 |
+
"Atcoder/abc233_g",
|
| 553 |
+
"Atcoder/abc235_f",
|
| 554 |
+
"Atcoder/abc237_f",
|
| 555 |
+
"Atcoder/abc248_f",
|
| 556 |
+
"Atcoder/abc251_e",
|
| 557 |
+
"Atcoder/abc252_g",
|
| 558 |
+
"Atcoder/abc261_g",
|
| 559 |
+
"Atcoder/abc262_g",
|
| 560 |
+
"Atcoder/abc263_e",
|
| 561 |
+
"Atcoder/abc264_f",
|
| 562 |
+
"Atcoder/abc265_e",
|
| 563 |
+
"Atcoder/abc267_g",
|
| 564 |
+
"Atcoder/abc271_e",
|
| 565 |
+
"Atcoder/abc275_e",
|
| 566 |
+
"Atcoder/abc281_g",
|
| 567 |
+
"Atcoder/abc282_g",
|
| 568 |
+
"Atcoder/abc283_e",
|
| 569 |
+
"Atcoder/abc285_e",
|
| 570 |
+
"Atcoder/abc288_e",
|
| 571 |
+
"Atcoder/abc292_g",
|
| 572 |
+
"Atcoder/abc298_e",
|
| 573 |
+
"Atcoder/abc298_g",
|
| 574 |
+
"Atcoder/abc299_f",
|
| 575 |
+
"Atcoder/abc307_e",
|
| 576 |
+
"Atcoder/abc307_g",
|
| 577 |
+
"Atcoder/abc310_e",
|
| 578 |
+
"Atcoder/abc311_e",
|
| 579 |
+
"Atcoder/abc311_f",
|
| 580 |
+
"Atcoder/abc320_f",
|
| 581 |
+
"Atcoder/abc323_e",
|
| 582 |
+
"Atcoder/abc325_g",
|
| 583 |
+
"Atcoder/abc336_e",
|
| 584 |
+
"Atcoder/abc338_g",
|
| 585 |
+
"Atcoder/abc354_f",
|
| 586 |
+
"Atcoder/abc362_e",
|
| 587 |
+
"Atcoder/abc376_f",
|
| 588 |
+
"Atcoder/agc056_b",
|
| 589 |
+
"Atcoder/agc060_a",
|
| 590 |
+
"Atcoder/agc062_b",
|
| 591 |
+
"Atcoder/agc067_b",
|
| 592 |
+
"Atcoder/agc067_d",
|
| 593 |
+
"Atcoder/agc069_d",
|
| 594 |
+
"Atcoder/arc104_c",
|
| 595 |
+
"Atcoder/arc104_f",
|
| 596 |
+
"Atcoder/arc107_d",
|
| 597 |
+
"Atcoder/arc108_e",
|
| 598 |
+
"Atcoder/arc114_d",
|
| 599 |
+
"Atcoder/arc116_d",
|
| 600 |
+
"Atcoder/arc117_e",
|
| 601 |
+
"Atcoder/arc123_c",
|
| 602 |
+
"Atcoder/arc124_e",
|
| 603 |
+
"Atcoder/arc125_d",
|
| 604 |
+
"Atcoder/arc126_b",
|
| 605 |
+
"Atcoder/arc131_f",
|
| 606 |
+
"Atcoder/arc133_b",
|
| 607 |
+
"Atcoder/arc146_e",
|
| 608 |
+
"Atcoder/arc168_d",
|
| 609 |
+
"Atcoder/arc178_d",
|
| 610 |
+
"Atcoder/arc180_c",
|
| 611 |
+
"Atcoder/arc181_f",
|
| 612 |
+
"Atcoder/arc183_c",
|
| 613 |
+
"ICPC_WF/2012/D-fibonacci-words",
|
| 614 |
+
"ICPC_WF/2012/K-stacking-plates",
|
| 615 |
+
"ICPC_WF/2013/H-matr-xka",
|
| 616 |
+
"ICPC_WF/2013/K-up-a-tree",
|
| 617 |
+
"ICPC_WF/2016/K-string-theory",
|
| 618 |
+
"ICPC_WF/2017/F-posterize",
|
| 619 |
+
"ICPC_WF/2018/F-go-with-the-flow",
|
| 620 |
+
"ICPC_WF/2023/J-bridging-the-gap",
|
| 621 |
+
"ICPC_WF/2025/D-buggy-rover",
|
| 622 |
+
"ICPC_WF/2025/H-score-values"
|
| 623 |
+
]
|
| 624 |
+
},
|
| 625 |
+
"DP-02": {
|
| 626 |
+
"family": "Dynamic Programming",
|
| 627 |
+
"category": "Knapsack / Subset / Bitmask DP",
|
| 628 |
+
"count": 53,
|
| 629 |
+
"icpc": 5,
|
| 630 |
+
"atcoder": 48,
|
| 631 |
+
"any_label_count": 80,
|
| 632 |
+
"problems": [
|
| 633 |
+
"Atcoder/abc180_e",
|
| 634 |
+
"Atcoder/abc187_f",
|
| 635 |
+
"Atcoder/abc190_e",
|
| 636 |
+
"Atcoder/abc192_f",
|
| 637 |
+
"Atcoder/abc195_f",
|
| 638 |
+
"Atcoder/abc199_e",
|
| 639 |
+
"Atcoder/abc213_g",
|
| 640 |
+
"Atcoder/abc215_e",
|
| 641 |
+
"Atcoder/abc221_h",
|
| 642 |
+
"Atcoder/abc222_e",
|
| 643 |
+
"Atcoder/abc228_g",
|
| 644 |
+
"Atcoder/abc232_f",
|
| 645 |
+
"Atcoder/abc234_f",
|
| 646 |
+
"Atcoder/abc243_f",
|
| 647 |
+
"Atcoder/abc262_d",
|
| 648 |
+
"Atcoder/abc269_g",
|
| 649 |
+
"Atcoder/abc275_f",
|
| 650 |
+
"Atcoder/abc301_e",
|
| 651 |
+
"Atcoder/abc310_f",
|
| 652 |
+
"Atcoder/abc319_f",
|
| 653 |
+
"Atcoder/abc321_f",
|
| 654 |
+
"Atcoder/abc321_g",
|
| 655 |
+
"Atcoder/abc325_f",
|
| 656 |
+
"Atcoder/abc328_g",
|
| 657 |
+
"Atcoder/abc338_f",
|
| 658 |
+
"Atcoder/abc343_g",
|
| 659 |
+
"Atcoder/abc352_f",
|
| 660 |
+
"Atcoder/abc358_e",
|
| 661 |
+
"Atcoder/abc359_d",
|
| 662 |
+
"Atcoder/abc364_e",
|
| 663 |
+
"Atcoder/abc364_g",
|
| 664 |
+
"Atcoder/abc373_f",
|
| 665 |
+
"Atcoder/abc375_e",
|
| 666 |
+
"Atcoder/agc049_d",
|
| 667 |
+
"Atcoder/agc061_e",
|
| 668 |
+
"Atcoder/agc062_d",
|
| 669 |
+
"Atcoder/agc064_d",
|
| 670 |
+
"Atcoder/arc104_d",
|
| 671 |
+
"Atcoder/arc105_f",
|
| 672 |
+
"Atcoder/arc132_f",
|
| 673 |
+
"Atcoder/arc137_d",
|
| 674 |
+
"Atcoder/arc138_f",
|
| 675 |
+
"Atcoder/arc158_f",
|
| 676 |
+
"Atcoder/arc160_f",
|
| 677 |
+
"Atcoder/arc162_e",
|
| 678 |
+
"Atcoder/arc171_d",
|
| 679 |
+
"Atcoder/arc179_b",
|
| 680 |
+
"Atcoder/arc182_c",
|
| 681 |
+
"ICPC_WF/2011/J-pyramids",
|
| 682 |
+
"ICPC_WF/2012/C-bus-tour",
|
| 683 |
+
"ICPC_WF/2018/J-uncrossed-knights-tour",
|
| 684 |
+
"ICPC_WF/2020/I-quests",
|
| 685 |
+
"ICPC_WF/2024/F-friendly-rivalry"
|
| 686 |
+
]
|
| 687 |
+
},
|
| 688 |
+
"DP-03": {
|
| 689 |
+
"family": "Dynamic Programming",
|
| 690 |
+
"category": "Tree / DAG DP",
|
| 691 |
+
"count": 26,
|
| 692 |
+
"icpc": 6,
|
| 693 |
+
"atcoder": 20,
|
| 694 |
+
"any_label_count": 49,
|
| 695 |
+
"problems": [
|
| 696 |
+
"Atcoder/abc207_f",
|
| 697 |
+
"Atcoder/abc220_f",
|
| 698 |
+
"Atcoder/abc223_g",
|
| 699 |
+
"Atcoder/abc224_e",
|
| 700 |
+
"Atcoder/abc246_g",
|
| 701 |
+
"Atcoder/abc248_g",
|
| 702 |
+
"Atcoder/abc259_f",
|
| 703 |
+
"Atcoder/abc263_f",
|
| 704 |
+
"Atcoder/abc287_f",
|
| 705 |
+
"Atcoder/abc291_f",
|
| 706 |
+
"Atcoder/abc300_e",
|
| 707 |
+
"Atcoder/abc329_g",
|
| 708 |
+
"Atcoder/abc335_e",
|
| 709 |
+
"Atcoder/abc348_e",
|
| 710 |
+
"Atcoder/agc068_d",
|
| 711 |
+
"Atcoder/arc116_e",
|
| 712 |
+
"Atcoder/arc121_f",
|
| 713 |
+
"Atcoder/arc130_d",
|
| 714 |
+
"Atcoder/arc157_e",
|
| 715 |
+
"Atcoder/arc179_d",
|
| 716 |
+
"ICPC_WF/2012/F-keys",
|
| 717 |
+
"ICPC_WF/2014/J-skiing",
|
| 718 |
+
"ICPC_WF/2018/A-catch-the-plane",
|
| 719 |
+
"ICPC_WF/2019/I-karel-the-robot",
|
| 720 |
+
"ICPC_WF/2020/B-the-cost-of-speed-limits",
|
| 721 |
+
"ICPC_WF/2020/J-s-no-problem"
|
| 722 |
+
]
|
| 723 |
+
},
|
| 724 |
+
"DP-04": {
|
| 725 |
+
"family": "Dynamic Programming",
|
| 726 |
+
"category": "DP Optimization",
|
| 727 |
+
"count": 84,
|
| 728 |
+
"icpc": 6,
|
| 729 |
+
"atcoder": 78,
|
| 730 |
+
"any_label_count": 168,
|
| 731 |
+
"problems": [
|
| 732 |
+
"Atcoder/abc176_f",
|
| 733 |
+
"Atcoder/abc179_d",
|
| 734 |
+
"Atcoder/abc182_f",
|
| 735 |
+
"Atcoder/abc188_f",
|
| 736 |
+
"Atcoder/abc199_f",
|
| 737 |
+
"Atcoder/abc200_e",
|
| 738 |
+
"Atcoder/abc201_f",
|
| 739 |
+
"Atcoder/abc203_e",
|
| 740 |
+
"Atcoder/abc204_f",
|
| 741 |
+
"Atcoder/abc207_e",
|
| 742 |
+
"Atcoder/abc212_e",
|
| 743 |
+
"Atcoder/abc218_h",
|
| 744 |
+
"Atcoder/abc228_h",
|
| 745 |
+
"Atcoder/abc232_e",
|
| 746 |
+
"Atcoder/abc234_g",
|
| 747 |
+
"Atcoder/abc236_g",
|
| 748 |
+
"Atcoder/abc243_g",
|
| 749 |
+
"Atcoder/abc249_e",
|
| 750 |
+
"Atcoder/abc256_g",
|
| 751 |
+
"Atcoder/abc265_f",
|
| 752 |
+
"Atcoder/abc271_g",
|
| 753 |
+
"Atcoder/abc273_g",
|
| 754 |
+
"Atcoder/abc277_g",
|
| 755 |
+
"Atcoder/abc279_g",
|
| 756 |
+
"Atcoder/abc288_f",
|
| 757 |
+
"Atcoder/abc289_g",
|
| 758 |
+
"Atcoder/abc293_e",
|
| 759 |
+
"Atcoder/abc301_f",
|
| 760 |
+
"Atcoder/abc303_g",
|
| 761 |
+
"Atcoder/abc305_g",
|
| 762 |
+
"Atcoder/abc310_g",
|
| 763 |
+
"Atcoder/abc333_f",
|
| 764 |
+
"Atcoder/abc344_f",
|
| 765 |
+
"Atcoder/abc345_e",
|
| 766 |
+
"Atcoder/abc348_g",
|
| 767 |
+
"Atcoder/abc351_g",
|
| 768 |
+
"Atcoder/abc353_g",
|
| 769 |
+
"Atcoder/abc355_g",
|
| 770 |
+
"Atcoder/abc358_g",
|
| 771 |
+
"Atcoder/abc360_e",
|
| 772 |
+
"Atcoder/abc360_g",
|
| 773 |
+
"Atcoder/abc369_g",
|
| 774 |
+
"Atcoder/abc370_e",
|
| 775 |
+
"Atcoder/abc372_f",
|
| 776 |
+
"Atcoder/abc374_f",
|
| 777 |
+
"Atcoder/agc047_f",
|
| 778 |
+
"Atcoder/agc048_e",
|
| 779 |
+
"Atcoder/agc049_e",
|
| 780 |
+
"Atcoder/agc062_c",
|
| 781 |
+
"Atcoder/agc065_b",
|
| 782 |
+
"Atcoder/agc065_e",
|
| 783 |
+
"Atcoder/agc066_c",
|
| 784 |
+
"Atcoder/agc066_d",
|
| 785 |
+
"Atcoder/arc107_e",
|
| 786 |
+
"Atcoder/arc112_e",
|
| 787 |
+
"Atcoder/arc114_f",
|
| 788 |
+
"Atcoder/arc115_e",
|
| 789 |
+
"Atcoder/arc119_f",
|
| 790 |
+
"Atcoder/arc120_e",
|
| 791 |
+
"Atcoder/arc123_d",
|
| 792 |
+
"Atcoder/arc125_f",
|
| 793 |
+
"Atcoder/arc132_c",
|
| 794 |
+
"Atcoder/arc150_f",
|
| 795 |
+
"Atcoder/arc153_d",
|
| 796 |
+
"Atcoder/arc153_e",
|
| 797 |
+
"Atcoder/arc157_f",
|
| 798 |
+
"Atcoder/arc158_e",
|
| 799 |
+
"Atcoder/arc159_d",
|
| 800 |
+
"Atcoder/arc159_f",
|
| 801 |
+
"Atcoder/arc160_c",
|
| 802 |
+
"Atcoder/arc162_f",
|
| 803 |
+
"Atcoder/arc168_e",
|
| 804 |
+
"Atcoder/arc170_c",
|
| 805 |
+
"Atcoder/arc170_e",
|
| 806 |
+
"Atcoder/arc175_c",
|
| 807 |
+
"Atcoder/arc176_d",
|
| 808 |
+
"Atcoder/arc177_f",
|
| 809 |
+
"Atcoder/arc180_e",
|
| 810 |
+
"ICPC_WF/2011/F-machine-works",
|
| 811 |
+
"ICPC_WF/2014/B-buffed-buffet",
|
| 812 |
+
"ICPC_WF/2016/B-branch-assignment",
|
| 813 |
+
"ICPC_WF/2018/C-conquer-the-world",
|
| 814 |
+
"ICPC_WF/2019/F-directing-rainfall",
|
| 815 |
+
"ICPC_WF/2024/J-the-silk-road-with-robots"
|
| 816 |
+
]
|
| 817 |
+
},
|
| 818 |
+
"GR-01": {
|
| 819 |
+
"family": "Graph Theory",
|
| 820 |
+
"category": "Traversal / Connectivity",
|
| 821 |
+
"count": 42,
|
| 822 |
+
"icpc": 11,
|
| 823 |
+
"atcoder": 31,
|
| 824 |
+
"any_label_count": 74,
|
| 825 |
+
"problems": [
|
| 826 |
+
"Atcoder/abc175_d",
|
| 827 |
+
"Atcoder/abc184_e",
|
| 828 |
+
"Atcoder/abc197_f",
|
| 829 |
+
"Atcoder/abc210_f",
|
| 830 |
+
"Atcoder/abc224_d",
|
| 831 |
+
"Atcoder/abc226_e",
|
| 832 |
+
"Atcoder/abc241_e",
|
| 833 |
+
"Atcoder/abc241_f",
|
| 834 |
+
"Atcoder/abc244_f",
|
| 835 |
+
"Atcoder/abc245_f",
|
| 836 |
+
"Atcoder/abc247_f",
|
| 837 |
+
"Atcoder/abc256_e",
|
| 838 |
+
"Atcoder/abc258_e",
|
| 839 |
+
"Atcoder/abc266_f",
|
| 840 |
+
"Atcoder/abc280_f",
|
| 841 |
+
"Atcoder/abc286_g",
|
| 842 |
+
"Atcoder/abc289_e",
|
| 843 |
+
"Atcoder/abc292_e",
|
| 844 |
+
"Atcoder/abc296_e",
|
| 845 |
+
"Atcoder/abc302_f",
|
| 846 |
+
"Atcoder/abc319_g",
|
| 847 |
+
"Atcoder/abc334_g",
|
| 848 |
+
"Atcoder/abc339_d",
|
| 849 |
+
"Atcoder/abc357_e",
|
| 850 |
+
"Atcoder/abc361_d",
|
| 851 |
+
"Atcoder/abc361_g",
|
| 852 |
+
"Atcoder/abc377_e",
|
| 853 |
+
"Atcoder/agc068_e",
|
| 854 |
+
"Atcoder/arc143_e",
|
| 855 |
+
"Atcoder/arc146_d",
|
| 856 |
+
"Atcoder/arc165_d",
|
| 857 |
+
"ICPC_WF/2011/C-ancient-messages",
|
| 858 |
+
"ICPC_WF/2011/H-mining-your-own-business",
|
| 859 |
+
"ICPC_WF/2013/A-self-assembly",
|
| 860 |
+
"ICPC_WF/2014/G-metal-processing-plant",
|
| 861 |
+
"ICPC_WF/2015/F-keyboarding",
|
| 862 |
+
"ICPC_WF/2015/K-tours",
|
| 863 |
+
"ICPC_WF/2019/E-dead-end-detector",
|
| 864 |
+
"ICPC_WF/2019/H-hobsons-trains",
|
| 865 |
+
"ICPC_WF/2021/A-crystal-crosswind",
|
| 866 |
+
"ICPC_WF/2023/G-turning-red",
|
| 867 |
+
"ICPC_WF/2024/G-kindergarten"
|
| 868 |
+
]
|
| 869 |
+
},
|
| 870 |
+
"GR-02": {
|
| 871 |
+
"family": "Graph Theory",
|
| 872 |
+
"category": "Shortest Paths / MST",
|
| 873 |
+
"count": 27,
|
| 874 |
+
"icpc": 5,
|
| 875 |
+
"atcoder": 22,
|
| 876 |
+
"any_label_count": 41,
|
| 877 |
+
"problems": [
|
| 878 |
+
"Atcoder/abc175_f",
|
| 879 |
+
"Atcoder/abc191_e",
|
| 880 |
+
"Atcoder/abc204_e",
|
| 881 |
+
"Atcoder/abc210_e",
|
| 882 |
+
"Atcoder/abc213_e",
|
| 883 |
+
"Atcoder/abc232_g",
|
| 884 |
+
"Atcoder/abc235_e",
|
| 885 |
+
"Atcoder/abc245_g",
|
| 886 |
+
"Atcoder/abc246_e",
|
| 887 |
+
"Atcoder/abc264_g",
|
| 888 |
+
"Atcoder/abc270_f",
|
| 889 |
+
"Atcoder/abc282_e",
|
| 890 |
+
"Atcoder/abc307_f",
|
| 891 |
+
"Atcoder/abc342_e",
|
| 892 |
+
"Atcoder/abc355_f",
|
| 893 |
+
"Atcoder/abc363_e",
|
| 894 |
+
"Atcoder/abc364_f",
|
| 895 |
+
"Atcoder/abc369_e",
|
| 896 |
+
"Atcoder/abc375_f",
|
| 897 |
+
"Atcoder/agc056_c",
|
| 898 |
+
"Atcoder/arc150_c",
|
| 899 |
+
"Atcoder/arc173_d",
|
| 900 |
+
"ICPC_WF/2012/A-asteroid-rangers",
|
| 901 |
+
"ICPC_WF/2012/G-minimum-cost-flow",
|
| 902 |
+
"ICPC_WF/2015/M-window-manager",
|
| 903 |
+
"ICPC_WF/2017/I-secret-chamber-at-mount-rushmore",
|
| 904 |
+
"ICPC_WF/2023/K-alea-iacta-est"
|
| 905 |
+
]
|
| 906 |
+
},
|
| 907 |
+
"GR-03": {
|
| 908 |
+
"family": "Graph Theory",
|
| 909 |
+
"category": "Flow / Matching",
|
| 910 |
+
"count": 31,
|
| 911 |
+
"icpc": 5,
|
| 912 |
+
"atcoder": 26,
|
| 913 |
+
"any_label_count": 37,
|
| 914 |
+
"problems": [
|
| 915 |
+
"Atcoder/abc193_f",
|
| 916 |
+
"Atcoder/abc205_f",
|
| 917 |
+
"Atcoder/abc214_h",
|
| 918 |
+
"Atcoder/abc215_h",
|
| 919 |
+
"Atcoder/abc224_h",
|
| 920 |
+
"Atcoder/abc225_g",
|
| 921 |
+
"Atcoder/abc231_h",
|
| 922 |
+
"Atcoder/abc241_g",
|
| 923 |
+
"Atcoder/abc247_g",
|
| 924 |
+
"Atcoder/abc259_g",
|
| 925 |
+
"Atcoder/abc263_g",
|
| 926 |
+
"Atcoder/abc285_g",
|
| 927 |
+
"Atcoder/abc318_g",
|
| 928 |
+
"Atcoder/abc320_g",
|
| 929 |
+
"Atcoder/abc326_g",
|
| 930 |
+
"Atcoder/abc354_g",
|
| 931 |
+
"Atcoder/abc374_g",
|
| 932 |
+
"Atcoder/agc069_a",
|
| 933 |
+
"Atcoder/arc106_e",
|
| 934 |
+
"Atcoder/arc107_f",
|
| 935 |
+
"Atcoder/arc125_e",
|
| 936 |
+
"Atcoder/arc129_e",
|
| 937 |
+
"Atcoder/arc137_e",
|
| 938 |
+
"Atcoder/arc142_e",
|
| 939 |
+
"Atcoder/arc161_f",
|
| 940 |
+
"Atcoder/arc176_e",
|
| 941 |
+
"ICPC_WF/2011/D-chips-challenge",
|
| 942 |
+
"ICPC_WF/2013/C-surely-you-congest",
|
| 943 |
+
"ICPC_WF/2015/C-catering",
|
| 944 |
+
"ICPC_WF/2017/C-mission-improbable",
|
| 945 |
+
"ICPC_WF/2021/E-hand-of-the-free-marked"
|
| 946 |
+
]
|
| 947 |
+
},
|
| 948 |
+
"GR-04": {
|
| 949 |
+
"family": "Graph Theory",
|
| 950 |
+
"category": "Tree Algorithms",
|
| 951 |
+
"count": 11,
|
| 952 |
+
"icpc": 0,
|
| 953 |
+
"atcoder": 11,
|
| 954 |
+
"any_label_count": 20,
|
| 955 |
+
"problems": [
|
| 956 |
+
"Atcoder/abc202_e",
|
| 957 |
+
"Atcoder/abc212_f",
|
| 958 |
+
"Atcoder/abc221_f",
|
| 959 |
+
"Atcoder/abc222_f",
|
| 960 |
+
"Atcoder/abc294_g",
|
| 961 |
+
"Atcoder/abc340_g",
|
| 962 |
+
"Atcoder/abc359_g",
|
| 963 |
+
"Atcoder/abc367_e",
|
| 964 |
+
"Atcoder/agc047_d",
|
| 965 |
+
"Atcoder/arc108_f",
|
| 966 |
+
"Atcoder/arc159_e"
|
| 967 |
+
]
|
| 968 |
+
},
|
| 969 |
+
"ST-01": {
|
| 970 |
+
"family": "Strings",
|
| 971 |
+
"category": "Pattern Matching / String Hashing",
|
| 972 |
+
"count": 4,
|
| 973 |
+
"icpc": 2,
|
| 974 |
+
"atcoder": 2,
|
| 975 |
+
"any_label_count": 8,
|
| 976 |
+
"problems": [
|
| 977 |
+
"Atcoder/abc257_g",
|
| 978 |
+
"Atcoder/abc349_g",
|
| 979 |
+
"ICPC_WF/2020/D-gene-folding",
|
| 980 |
+
"ICPC_WF/2020/O-which-planet-is-this"
|
| 981 |
+
]
|
| 982 |
+
},
|
| 983 |
+
"ST-02": {
|
| 984 |
+
"family": "Strings",
|
| 985 |
+
"category": "Trie / Suffix Structures",
|
| 986 |
+
"count": 10,
|
| 987 |
+
"icpc": 2,
|
| 988 |
+
"atcoder": 8,
|
| 989 |
+
"any_label_count": 13,
|
| 990 |
+
"problems": [
|
| 991 |
+
"Atcoder/abc213_f",
|
| 992 |
+
"Atcoder/abc272_f",
|
| 993 |
+
"Atcoder/abc353_e",
|
| 994 |
+
"Atcoder/abc362_g",
|
| 995 |
+
"Atcoder/abc377_g",
|
| 996 |
+
"Atcoder/agc047_b",
|
| 997 |
+
"Atcoder/arc141_f",
|
| 998 |
+
"Atcoder/arc149_f",
|
| 999 |
+
"ICPC_WF/2019/G-first-of-her-name",
|
| 1000 |
+
"ICPC_WF/2021/L-where-am-i"
|
| 1001 |
+
]
|
| 1002 |
+
},
|
| 1003 |
+
"PA-01": {
|
| 1004 |
+
"family": "Algorithmic Paradigms",
|
| 1005 |
+
"category": "Greedy",
|
| 1006 |
+
"count": 51,
|
| 1007 |
+
"icpc": 13,
|
| 1008 |
+
"atcoder": 38,
|
| 1009 |
+
"any_label_count": 111,
|
| 1010 |
+
"problems": [
|
| 1011 |
+
"Atcoder/abc177_f",
|
| 1012 |
+
"Atcoder/abc225_e",
|
| 1013 |
+
"Atcoder/abc225_f",
|
| 1014 |
+
"Atcoder/abc226_g",
|
| 1015 |
+
"Atcoder/abc236_f",
|
| 1016 |
+
"Atcoder/abc239_f",
|
| 1017 |
+
"Atcoder/abc245_e",
|
| 1018 |
+
"Atcoder/abc249_f",
|
| 1019 |
+
"Atcoder/abc252_f",
|
| 1020 |
+
"Atcoder/abc254_g",
|
| 1021 |
+
"Atcoder/abc257_e",
|
| 1022 |
+
"Atcoder/abc268_f",
|
| 1023 |
+
"Atcoder/abc290_g",
|
| 1024 |
+
"Atcoder/abc299_g",
|
| 1025 |
+
"Atcoder/abc308_f",
|
| 1026 |
+
"Atcoder/abc312_f",
|
| 1027 |
+
"Atcoder/abc314_g",
|
| 1028 |
+
"Atcoder/abc325_d",
|
| 1029 |
+
"Atcoder/abc329_e",
|
| 1030 |
+
"Atcoder/abc330_f",
|
| 1031 |
+
"Atcoder/abc359_f",
|
| 1032 |
+
"Atcoder/abc366_f",
|
| 1033 |
+
"Atcoder/abc376_g",
|
| 1034 |
+
"Atcoder/agc053_b",
|
| 1035 |
+
"Atcoder/agc063_b",
|
| 1036 |
+
"Atcoder/arc117_f",
|
| 1037 |
+
"Atcoder/arc121_d",
|
| 1038 |
+
"Atcoder/arc125_c",
|
| 1039 |
+
"Atcoder/arc127_e",
|
| 1040 |
+
"Atcoder/arc128_e",
|
| 1041 |
+
"Atcoder/arc132_d",
|
| 1042 |
+
"Atcoder/arc134_d",
|
| 1043 |
+
"Atcoder/arc141_d",
|
| 1044 |
+
"Atcoder/arc147_e",
|
| 1045 |
+
"Atcoder/arc157_b",
|
| 1046 |
+
"Atcoder/arc166_d",
|
| 1047 |
+
"Atcoder/arc167_d",
|
| 1048 |
+
"Atcoder/arc170_f",
|
| 1049 |
+
"ICPC_WF/2013/F-low-power",
|
| 1050 |
+
"ICPC_WF/2014/K-surveillance",
|
| 1051 |
+
"ICPC_WF/2015/A-amalgamated-artichokes",
|
| 1052 |
+
"ICPC_WF/2015/L-weather-report",
|
| 1053 |
+
"ICPC_WF/2016/A-balanced-diet",
|
| 1054 |
+
"ICPC_WF/2016/L-swap-space",
|
| 1055 |
+
"ICPC_WF/2019/A-azulejos",
|
| 1056 |
+
"ICPC_WF/2021/H-prehistoric-programs",
|
| 1057 |
+
"ICPC_WF/2023/H-jet-lag",
|
| 1058 |
+
"ICPC_WF/2024/A-billboards",
|
| 1059 |
+
"ICPC_WF/2024/D-doubles-horseback-wrestling",
|
| 1060 |
+
"ICPC_WF/2024/I-steppe-on-it",
|
| 1061 |
+
"ICPC_WF/2025/A-a-skew-ed-reasoning"
|
| 1062 |
+
]
|
| 1063 |
+
},
|
| 1064 |
+
"PA-02": {
|
| 1065 |
+
"family": "Algorithmic Paradigms",
|
| 1066 |
+
"category": "Binary / Ternary Search",
|
| 1067 |
+
"count": 12,
|
| 1068 |
+
"icpc": 2,
|
| 1069 |
+
"atcoder": 10,
|
| 1070 |
+
"any_label_count": 44,
|
| 1071 |
+
"problems": [
|
| 1072 |
+
"Atcoder/abc192_d",
|
| 1073 |
+
"Atcoder/abc203_d",
|
| 1074 |
+
"Atcoder/abc215_f",
|
| 1075 |
+
"Atcoder/abc257_d",
|
| 1076 |
+
"Atcoder/abc267_e",
|
| 1077 |
+
"Atcoder/abc270_e",
|
| 1078 |
+
"Atcoder/abc346_f",
|
| 1079 |
+
"Atcoder/abc370_f",
|
| 1080 |
+
"Atcoder/abc373_e",
|
| 1081 |
+
"Atcoder/abc374_e",
|
| 1082 |
+
"ICPC_WF/2015/D-cutting-cheese",
|
| 1083 |
+
"ICPC_WF/2017/E-need-for-speed"
|
| 1084 |
+
]
|
| 1085 |
+
},
|
| 1086 |
+
"PA-03": {
|
| 1087 |
+
"family": "Algorithmic Paradigms",
|
| 1088 |
+
"category": "Two Pointers / Sliding Window / Sweep Line",
|
| 1089 |
+
"count": 16,
|
| 1090 |
+
"icpc": 2,
|
| 1091 |
+
"atcoder": 14,
|
| 1092 |
+
"any_label_count": 66,
|
| 1093 |
+
"problems": [
|
| 1094 |
+
"Atcoder/abc211_f",
|
| 1095 |
+
"Atcoder/abc231_f",
|
| 1096 |
+
"Atcoder/abc247_e",
|
| 1097 |
+
"Atcoder/abc250_f",
|
| 1098 |
+
"Atcoder/abc260_e",
|
| 1099 |
+
"Atcoder/abc274_f",
|
| 1100 |
+
"Atcoder/abc311_g",
|
| 1101 |
+
"Atcoder/abc318_f",
|
| 1102 |
+
"Atcoder/abc327_f",
|
| 1103 |
+
"Atcoder/abc337_f",
|
| 1104 |
+
"Atcoder/abc344_g",
|
| 1105 |
+
"Atcoder/abc360_f",
|
| 1106 |
+
"Atcoder/abc366_e",
|
| 1107 |
+
"Atcoder/abc368_e",
|
| 1108 |
+
"ICPC_WF/2015/I-ship-traffic",
|
| 1109 |
+
"ICPC_WF/2018/I-triangles"
|
| 1110 |
+
]
|
| 1111 |
+
},
|
| 1112 |
+
"PA-04": {
|
| 1113 |
+
"family": "Algorithmic Paradigms",
|
| 1114 |
+
"category": "Divide & Conquer / Sqrt Decomposition",
|
| 1115 |
+
"count": 8,
|
| 1116 |
+
"icpc": 1,
|
| 1117 |
+
"atcoder": 7,
|
| 1118 |
+
"any_label_count": 22,
|
| 1119 |
+
"problems": [
|
| 1120 |
+
"Atcoder/abc219_g",
|
| 1121 |
+
"Atcoder/abc242_g",
|
| 1122 |
+
"Atcoder/abc293_g",
|
| 1123 |
+
"Atcoder/abc335_f",
|
| 1124 |
+
"Atcoder/abc350_g",
|
| 1125 |
+
"Atcoder/abc363_g",
|
| 1126 |
+
"Atcoder/abc365_g",
|
| 1127 |
+
"ICPC_WF/2017/D-money-for-nothing"
|
| 1128 |
+
]
|
| 1129 |
+
},
|
| 1130 |
+
"PA-05": {
|
| 1131 |
+
"family": "Algorithmic Paradigms",
|
| 1132 |
+
"category": "Brute Force / Search",
|
| 1133 |
+
"count": 24,
|
| 1134 |
+
"icpc": 7,
|
| 1135 |
+
"atcoder": 17,
|
| 1136 |
+
"any_label_count": 65,
|
| 1137 |
+
"problems": [
|
| 1138 |
+
"Atcoder/abc184_f",
|
| 1139 |
+
"Atcoder/abc196_d",
|
| 1140 |
+
"Atcoder/abc199_d",
|
| 1141 |
+
"Atcoder/abc211_e",
|
| 1142 |
+
"Atcoder/abc219_e",
|
| 1143 |
+
"Atcoder/abc226_f",
|
| 1144 |
+
"Atcoder/abc270_g",
|
| 1145 |
+
"Atcoder/abc271_f",
|
| 1146 |
+
"Atcoder/abc300_g",
|
| 1147 |
+
"Atcoder/abc307_c",
|
| 1148 |
+
"Atcoder/abc312_e",
|
| 1149 |
+
"Atcoder/abc322_d",
|
| 1150 |
+
"Atcoder/abc339_f",
|
| 1151 |
+
"Atcoder/abc345_d",
|
| 1152 |
+
"Atcoder/arc104_e",
|
| 1153 |
+
"Atcoder/arc105_c",
|
| 1154 |
+
"Atcoder/arc177_e",
|
| 1155 |
+
"ICPC_WF/2011/B-affine-mess",
|
| 1156 |
+
"ICPC_WF/2013/D-factors",
|
| 1157 |
+
"ICPC_WF/2013/E-harvard",
|
| 1158 |
+
"ICPC_WF/2016/D-clock-breaking",
|
| 1159 |
+
"ICPC_WF/2017/B-get-a-clue",
|
| 1160 |
+
"ICPC_WF/2019/C-checks-post-facto",
|
| 1161 |
+
"ICPC_WF/2024/E-flipping-container"
|
| 1162 |
+
]
|
| 1163 |
+
},
|
| 1164 |
+
"AH-01": {
|
| 1165 |
+
"family": "Ad-hoc & Implementation",
|
| 1166 |
+
"category": "Ad-hoc / Observation / Case Work",
|
| 1167 |
+
"count": 69,
|
| 1168 |
+
"icpc": 13,
|
| 1169 |
+
"atcoder": 56,
|
| 1170 |
+
"any_label_count": 170,
|
| 1171 |
+
"problems": [
|
| 1172 |
+
"Atcoder/abc179_f",
|
| 1173 |
+
"Atcoder/abc218_f",
|
| 1174 |
+
"Atcoder/abc223_e",
|
| 1175 |
+
"Atcoder/abc237_g",
|
| 1176 |
+
"Atcoder/abc242_e",
|
| 1177 |
+
"Atcoder/abc250_e",
|
| 1178 |
+
"Atcoder/abc253_f",
|
| 1179 |
+
"Atcoder/abc253_g",
|
| 1180 |
+
"Atcoder/abc257_f",
|
| 1181 |
+
"Atcoder/abc258_f",
|
| 1182 |
+
"Atcoder/abc262_f",
|
| 1183 |
+
"Atcoder/abc279_e",
|
| 1184 |
+
"Atcoder/abc285_f",
|
| 1185 |
+
"Atcoder/abc298_f",
|
| 1186 |
+
"Atcoder/abc300_f",
|
| 1187 |
+
"Atcoder/abc312_g",
|
| 1188 |
+
"Atcoder/abc313_e",
|
| 1189 |
+
"Atcoder/abc337_g",
|
| 1190 |
+
"Atcoder/abc347_f",
|
| 1191 |
+
"Atcoder/abc350_f",
|
| 1192 |
+
"Atcoder/abc354_d",
|
| 1193 |
+
"Atcoder/agc048_c",
|
| 1194 |
+
"Atcoder/agc054_d",
|
| 1195 |
+
"Atcoder/agc057_a",
|
| 1196 |
+
"Atcoder/agc058_b",
|
| 1197 |
+
"Atcoder/agc058_c",
|
| 1198 |
+
"Atcoder/agc061_a",
|
| 1199 |
+
"Atcoder/agc066_e",
|
| 1200 |
+
"Atcoder/agc068_c",
|
| 1201 |
+
"Atcoder/arc108_d",
|
| 1202 |
+
"Atcoder/arc109_f",
|
| 1203 |
+
"Atcoder/arc113_e",
|
| 1204 |
+
"Atcoder/arc128_d",
|
| 1205 |
+
"Atcoder/arc131_d",
|
| 1206 |
+
"Atcoder/arc136_e",
|
| 1207 |
+
"Atcoder/arc139_e",
|
| 1208 |
+
"Atcoder/arc142_d",
|
| 1209 |
+
"Atcoder/arc149_d",
|
| 1210 |
+
"Atcoder/arc149_e",
|
| 1211 |
+
"Atcoder/arc151_e",
|
| 1212 |
+
"Atcoder/arc153_b",
|
| 1213 |
+
"Atcoder/arc153_f",
|
| 1214 |
+
"Atcoder/arc154_c",
|
| 1215 |
+
"Atcoder/arc155_c",
|
| 1216 |
+
"Atcoder/arc157_d",
|
| 1217 |
+
"Atcoder/arc160_a",
|
| 1218 |
+
"Atcoder/arc164_e",
|
| 1219 |
+
"Atcoder/arc165_b",
|
| 1220 |
+
"Atcoder/arc165_c",
|
| 1221 |
+
"Atcoder/arc171_b",
|
| 1222 |
+
"Atcoder/arc172_c",
|
| 1223 |
+
"Atcoder/arc173_c",
|
| 1224 |
+
"Atcoder/arc176_c",
|
| 1225 |
+
"Atcoder/arc176_f",
|
| 1226 |
+
"Atcoder/arc183_b",
|
| 1227 |
+
"Atcoder/arc183_e",
|
| 1228 |
+
"ICPC_WF/2012/I-a-safe-bet",
|
| 1229 |
+
"ICPC_WF/2014/E-maze-reduction",
|
| 1230 |
+
"ICPC_WF/2016/F-longest-rivers",
|
| 1231 |
+
"ICPC_WF/2021/J-splitstream",
|
| 1232 |
+
"ICPC_WF/2022/Y-compression",
|
| 1233 |
+
"ICPC_WF/2023/F-tilting-tiles",
|
| 1234 |
+
"ICPC_WF/2024/B-bingo-for-the-win",
|
| 1235 |
+
"ICPC_WF/2024/C-citizenship",
|
| 1236 |
+
"ICPC_WF/2024/K-tower-of-noiha",
|
| 1237 |
+
"ICPC_WF/2024/L-where-am-i-now",
|
| 1238 |
+
"ICPC_WF/2025/F-herding-cats",
|
| 1239 |
+
"ICPC_WF/2025/I-slot-machine",
|
| 1240 |
+
"ICPC_WF/2025/L-walking-on-sunshine"
|
| 1241 |
+
]
|
| 1242 |
+
},
|
| 1243 |
+
"AH-02": {
|
| 1244 |
+
"family": "Ad-hoc & Implementation",
|
| 1245 |
+
"category": "Constructive",
|
| 1246 |
+
"count": 3,
|
| 1247 |
+
"icpc": 1,
|
| 1248 |
+
"atcoder": 2,
|
| 1249 |
+
"any_label_count": 14,
|
| 1250 |
+
"problems": [
|
| 1251 |
+
"Atcoder/abc233_f",
|
| 1252 |
+
"Atcoder/arc144_c",
|
| 1253 |
+
"ICPC_WF/2022/U-toy-train-tracks"
|
| 1254 |
+
]
|
| 1255 |
+
},
|
| 1256 |
+
"AH-03": {
|
| 1257 |
+
"family": "Ad-hoc & Implementation",
|
| 1258 |
+
"category": "Implementation / Simulation",
|
| 1259 |
+
"count": 3,
|
| 1260 |
+
"icpc": 2,
|
| 1261 |
+
"atcoder": 1,
|
| 1262 |
+
"any_label_count": 7,
|
| 1263 |
+
"problems": [
|
| 1264 |
+
"Atcoder/abc315_d",
|
| 1265 |
+
"ICPC_WF/2016/C-ceiling-function",
|
| 1266 |
+
"ICPC_WF/2016/M-what-really-happened-on-mars"
|
| 1267 |
+
]
|
| 1268 |
+
},
|
| 1269 |
+
"AH-04": {
|
| 1270 |
+
"family": "Ad-hoc & Implementation",
|
| 1271 |
+
"category": "Interactive",
|
| 1272 |
+
"count": 0,
|
| 1273 |
+
"icpc": 0,
|
| 1274 |
+
"atcoder": 0,
|
| 1275 |
+
"any_label_count": 4,
|
| 1276 |
+
"problems": []
|
| 1277 |
+
}
|
| 1278 |
+
}
|
manifest.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
manifest.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
problems/MA-03/ICPC_WF/2017/K-tarot-sham-boast/data/sample-2.ans
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
PRSPS
|
| 2 |
+
PPSPP
|
| 3 |
+
SSSSS
|
problems/MA-03/ICPC_WF/2017/K-tarot-sham-boast/data/secret-008_random.ans
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
SRPPRRS
|
| 2 |
+
RRRSPSP
|
| 3 |
+
RPRRRPR
|
| 4 |
+
SPPPSRP
|
| 5 |
+
PPSRSSR
|
| 6 |
+
SRSPPSP
|
| 7 |
+
PSSPSPS
|
| 8 |
+
SSPSPRR
|
| 9 |
+
PPPPPSS
|
| 10 |
+
RPRRPRR
|
problems/MA-03/ICPC_WF/2017/K-tarot-sham-boast/data/secret-010_random.ans
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
SRPPRRSRR
|
| 2 |
+
RSPSPRPRR
|
| 3 |
+
RPRSPPPSR
|
| 4 |
+
PPPSRSSRS
|
| 5 |
+
RSPPSPRPR
|
| 6 |
+
RPRRPSSPS
|
| 7 |
+
PSSSPSPRR
|
| 8 |
+
PPPPPSSRP
|
| 9 |
+
RPRPPRRSP
|
| 10 |
+
PRPRSRSSS
|
problems/MA-03/ICPC_WF/2017/K-tarot-sham-boast/data/secret-016_lastdiffer.in
ADDED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PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
|
problems/MA-03/ICPC_WF/2017/K-tarot-sham-boast/data/secret-037_random.ans
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
SRP
|
| 2 |
+
PRR
|
| 3 |
+
SRR
|
| 4 |
+
RSP
|
| 5 |
+
SPR
|
| 6 |
+
PRR
|
| 7 |
+
SPP
|
| 8 |
+
RPR
|
problems/MA-03/ICPC_WF/2017/K-tarot-sham-boast/data/secret-042_random.ans
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
problems/MA-03/ICPC_WF/2017/K-tarot-sham-boast/data/secret-047_oner.in
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
problems/MA-03/ICPC_WF/2017/K-tarot-sham-boast/data/secret-057_binaryties.in
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
problems/MA-03/ICPC_WF/2017/K-tarot-sham-boast/judge.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"time_limit_s": 2.0,
|
| 3 |
+
"time_limit_source": "statement",
|
| 4 |
+
"memory_mb": 2048,
|
| 5 |
+
"memory_source": "default (the statement gives none)",
|
| 6 |
+
"mode": "exact",
|
| 7 |
+
"validator_flags": null,
|
| 8 |
+
"comparison": "Kattis default output validator: token-wise, whitespace- and case-insensitive",
|
| 9 |
+
"validator": null,
|
| 10 |
+
"tests_dir": "data",
|
| 11 |
+
"answer_suffix": ".ans",
|
| 12 |
+
"n_sample": 2,
|
| 13 |
+
"n_secret": 73
|
| 14 |
+
}
|
problems/MA-03/ICPC_WF/2017/K-tarot-sham-boast/meta.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"year": "2017",
|
| 3 |
+
"letter": "K",
|
| 4 |
+
"title": "Tarot Sham Boast",
|
| 5 |
+
"slug": "tarot-sham-boast",
|
| 6 |
+
"source_pdf": "contest_problems.pdf",
|
| 7 |
+
"page_start": 21,
|
| 8 |
+
"page_end": 22
|
| 9 |
+
}
|
problems/MA-03/ICPC_WF/2017/K-tarot-sham-boast/page.html
ADDED
|
@@ -0,0 +1,206 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html><html lang="en"> <head><meta charset="UTF-8"><meta name="viewport" content="width=device-width"><meta name="generator" content="Astro v6.1.0"><meta name="description" content="event sponsor ICPC 2017 Problem K Tarot Sham Boast Time limit: 2 seconds Curse your rival! Every year at the annual Rock Paper Scissors tournament, you have made it to the final match. (Your Rock technique is unmatched, and your Paper cuts to the bone! Your..."><link rel="canonical" href="https://nghia03092004.github.io/competitive-programming/icpc/2017/k-tarot-sham-boast/"><link rel="icon" type="image/svg+xml" href="/favicon.svg"><meta name="theme-color" content="#f8fafc"><meta property="og:title" content="K. Tarot Sham Boast | Ethan Pham"><meta property="og:description" content="event sponsor ICPC 2017 Problem K Tarot Sham Boast Time limit: 2 seconds Curse your rival! Every year at the annual Rock Paper Scissors tournament, you have made it to the final match. (Your Rock technique is unmatched, and your Paper cuts to the bone! Your..."><meta property="og:type" content="website"><meta property="og:url" content="https://nghia03092004.github.io/competitive-programming/icpc/2017/k-tarot-sham-boast/"><meta name="twitter:card" content="summary_large_image"><title>K. Tarot Sham Boast | Ethan Pham</title><link rel="stylesheet" href="/_astro/BaseLayout.B7QrEWOj.css"></head> <body> <div class="site-backdrop" aria-hidden="true"> <div class="site-backdrop__orb site-backdrop__orb--warm"></div> <div class="site-backdrop__orb site-backdrop__orb--cool"></div> <div class="site-backdrop__grid"></div> </div> <div class="page-shell"> <header class="site-header"> <div class="container"> <div class="site-header__inner"> <a class="brand" href="/"> <span class="brand__mark">EP</span> <span class="brand__text"> <span class="brand__title">Ethan Pham</span> <span class="brand__subtitle">Project Euler, competitive programming, and notes on the things I keep studying.</span> </span> </a> <nav class="nav-links" aria-label="Primary"> <a class="nav-link" href="/"> Home </a><a class="nav-link" href="/project-euler"> Project Euler </a><a class="nav-link" href="/competitive-programming" aria-current="page"> Competitive Programming </a><a class="nav-link" href="/about"> About </a> </nav> </div> </div> </header> <main class="container site-main"> <article class="article-shell"> <div class="post-content"> <a class="post-layout__back" href="/competitive-programming/icpc/2017"> <span aria-hidden="true">←</span> <span>ICPC 2017</span> </a> <header class="post-header"> <span class="eyebrow">ICPC 2017</span> <h1>K. Tarot Sham Boast</h1> <p>event sponsor ICPC 2017 Problem K Tarot Sham Boast Time limit: 2 seconds Curse your rival! Every year at the annual Rock Paper Scissors tournament, you have made it to the final match. (Your Rock technique is unmatched, and your Paper cuts to the bone! Your...</p> <div class="meta-grid"> <div class="meta-item"> <strong>Updated</strong> <span>May 21, 2026</span> </div><div class="meta-item"> <strong>Track</strong> <span>ICPC</span> </div><div class="meta-item"> <strong>Year</strong> <span>2017</span> </div><div class="meta-item"> <strong>Statement</strong> <span>Text + PDF</span> </div> </div> <div class="chip-row"> <span class="chip">TeX</span><span class="chip">C++</span><span class="chip">Statement text</span><span class="chip">Statement PDF</span> </div> </header> <div class="post-content"> <section class="cp-content cp-content--statement panel" id="problem-statement" data-cp-statement-root="cp-statement-icpc-2017-k-tarot-sham-boast"> <div class="cp-content__header"> <div> <span class="section-label">Problem statement</span> <h2>Problem Statement</h2> <p>Formatted from the contest statement text, with sample tests broken out into copyable blocks.</p> </div> <div class="cp-content__actions"> <a class="button button--ghost" href="/competitive-programming-assets/icpc/2017/K-tarot-sham-boast/statement.txt">
|
| 2 |
+
Statement text
|
| 3 |
+
</a> <a class="button button--ghost" href="/competitive-programming-assets/icpc/2017/K-tarot-sham-boast/statement.pdf">
|
| 4 |
+
Statement PDF
|
| 5 |
+
</a> </div> </div> <div class="cp-statement__meta"> <div class="cp-statement__meta-item"> <span class="metric">Time limit</span> <strong>2 seconds</strong> </div> </div><div class="cp-content__body cp-statement__body"><p>Curse your rival! Every year at the annual Rock Paper Scissors tournament, you have made it to the final match. (Your Rock technique is unmatched, and your Paper cuts to the bone! Your Scissors need a little work, though.) But every year, he defeats you, even though his moves appear entirely random! And he claims to the press that he simply cannot be beaten. What is his secret? Fortunately, you think you have figured it out. This year, just before the tournament, you caught him visiting various shamans around town. Aha! He is using the supernatural against you! You figured two can play at this game. So you went and visited a set of fortune-tellers, who have each used a Tarot deck to predict a sequence that your rival will end up using, sometime during the match. However, your initial excitement has passed, and now you are feeling a little silly. This cannot possibly work, right? In the end it feels like you have paid good money for a fraudulent, random set of predictions. Oh well; you might as well keep an eye out for some of them during the match. But which predictions will you use? In the final match, you and your rival will play n rounds of Rock Paper Scissors. In each round, your rival and you will both choose one of the three options (Rock, Paper, or Scissors). Based on your selections, a winner of the round will be determined (exactly how is irrelevant to this problem). Given the length of the final match and the various predictions, sort them in order of how likely they are to appear sometime during the match as a contiguous sequence of options chosen by your rival, assuming he is choosing his symbol in each round independently and uniformly at random.</p></div><section class="cp-statement__section" id="statement-input"> <h3>Input</h3> <div class="cp-content__body cp-statement__body"><p>The first line of input contains two integers n (1 ≤ n ≤ 106 ), the number of rounds in the final match, and s (1 ≤ s ≤ 10), the number of sequences. The remaining s lines each describe a prediction, consisting of a string of characters ‘R’, ‘P’, and ‘S’. All predictions have the same length, which is between 1 and n characters long, inclusive, and no longer than 105 .</p></div> </section><section class="cp-statement__section" id="statement-output"> <h3>Output</h3> <div class="cp-content__body cp-statement__body"><p>Display all of the predictions, sorted by decreasing likelihood of appearance sometime during the final match. In the case of tied predictions, display them in the same order as in the input.</p></div> </section><section class="cp-statement__section" id="statement-samples-1"> <h3>Sample Tests</h3> <div class="cp-statement__samples"> <article class="cp-statement__sample"> <div class="cp-statement__sample-header"> <strong>Sample 1</strong> </div> <div class="cp-statement__sample-grid"> <div class="cp-statement__sample-panel"> <div class="cp-statement__sample-label"> <span class="metric">Sample Input</span> <button class="source-copy" type="button" data-copy-target="cp-statement-icpc-2017-k-tarot-sham-boast-sample-2-0-input">
|
| 6 |
+
Copy
|
| 7 |
+
</button> </div> <pre class="cp-statement__sample-code"><code id="cp-statement-icpc-2017-k-tarot-sham-boast-sample-2-0-input"> 3 4
|
| 8 |
+
PP
|
| 9 |
+
RR
|
| 10 |
+
PS
|
| 11 |
+
SS</code></pre> </div> <div class="cp-statement__sample-panel"> <div class="cp-statement__sample-label"> <span class="metric">Sample Output</span> <button class="source-copy" type="button" data-copy-target="cp-statement-icpc-2017-k-tarot-sham-boast-sample-2-0-output">
|
| 12 |
+
Copy
|
| 13 |
+
</button> </div> <pre class="cp-statement__sample-code"><code id="cp-statement-icpc-2017-k-tarot-sham-boast-sample-2-0-output">PS
|
| 14 |
+
PP
|
| 15 |
+
RR
|
| 16 |
+
SS
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
Rapid City
|
| 20 |
+
|
| 21 |
+
sponsor
|
| 22 |
+
ICPC 2017</code></pre> </div> </div> </article><article class="cp-statement__sample"> <div class="cp-statement__sample-header"> <strong>Sample 2</strong> </div> <div class="cp-statement__sample-grid"> <div class="cp-statement__sample-panel"> <div class="cp-statement__sample-label"> <span class="metric">Sample Input</span> <button class="source-copy" type="button" data-copy-target="cp-statement-icpc-2017-k-tarot-sham-boast-sample-2-1-input">
|
| 23 |
+
Copy
|
| 24 |
+
</button> </div> <pre class="cp-statement__sample-code"><code id="cp-statement-icpc-2017-k-tarot-sham-boast-sample-2-1-input">20 3
|
| 25 |
+
PRSPS
|
| 26 |
+
SSSSS
|
| 27 |
+
PPSPP</code></pre> </div> <div class="cp-statement__sample-panel"> <div class="cp-statement__sample-label"> <span class="metric">Sample Output</span> <button class="source-copy" type="button" data-copy-target="cp-statement-icpc-2017-k-tarot-sham-boast-sample-2-1-output">
|
| 28 |
+
Copy
|
| 29 |
+
</button> </div> <pre class="cp-statement__sample-code"><code id="cp-statement-icpc-2017-k-tarot-sham-boast-sample-2-1-output">PRSPS
|
| 30 |
+
PPSPP
|
| 31 |
+
SSSSS</code></pre> </div> </div> </article> </div> </section> </section> <section class="cp-content cp-content--editorial panel" id="editorial"> <div class="cp-content__header"> <div> <span class="section-label">Editorial</span> <h2>Editorial</h2> <p>The solution write-up is rendered from the LaTeX source, with equations kept live through MathJax.</p> </div> <div class="cp-content__actions"> <a class="button button--ghost" href="/competitive-programming-assets/icpc/2017/K-tarot-sham-boast/solution.tex">Raw TeX</a> </div> </div> <div class="cp-content__body" data-cp-math-content><h3 id="cp-editorial-icpc-2017-k-tarot-sham-boast-key-observations">Key Observations</h3>
|
| 32 |
+
<ul><li><p>Write the structural observations that make the problem tractable.</p></li><li><p>State any useful invariant, monotonicity property, graph interpretation, or combinatorial reformulation.</p></li><li><p>If the constraints matter, explain exactly which part of the solution they enable.</p></li></ul>
|
| 33 |
+
<h3 id="cp-editorial-icpc-2017-k-tarot-sham-boast-algorithm">Algorithm</h3>
|
| 34 |
+
<ol><li><p>Describe the data structures and the state maintained by the algorithm.</p></li><li><p>Explain the processing order and why it is sufficient.</p></li><li><p>Mention corner cases explicitly if they affect the implementation.</p></li></ol>
|
| 35 |
+
<h3 id="cp-editorial-icpc-2017-k-tarot-sham-boast-correctness-proof">Correctness Proof</h3>
|
| 36 |
+
<p>We prove that the algorithm returns the correct answer.</p>
|
| 37 |
+
<p class="cp-content__paragraph-heading"><strong>Lemma 1.</strong></p>
|
| 38 |
+
<p>State the first key claim.</p>
|
| 39 |
+
<p class="cp-content__paragraph-heading"><strong>Proof.</strong></p>
|
| 40 |
+
<p>Provide a concise proof.</p>
|
| 41 |
+
<p class="cp-content__paragraph-heading"><strong>Lemma 2.</strong></p>
|
| 42 |
+
<p>State the next claim if needed.</p>
|
| 43 |
+
<p class="cp-content__paragraph-heading"><strong>Proof.</strong></p>
|
| 44 |
+
<p>Provide a concise proof.</p>
|
| 45 |
+
<p class="cp-content__paragraph-heading"><strong>Theorem.</strong></p>
|
| 46 |
+
<p>The algorithm outputs the correct answer for every valid input.</p>
|
| 47 |
+
<p class="cp-content__paragraph-heading"><strong>Proof.</strong></p>
|
| 48 |
+
<p>Combine the lemmas and finish the argument.</p>
|
| 49 |
+
<h3 id="cp-editorial-icpc-2017-k-tarot-sham-boast-complexity-analysis">Complexity Analysis</h3>
|
| 50 |
+
<p>State the running time and memory usage in terms of the input size.</p>
|
| 51 |
+
<h3 id="cp-editorial-icpc-2017-k-tarot-sham-boast-implementation-notes">Implementation Notes</h3>
|
| 52 |
+
<ul><li><p>Mention any non-obvious implementation detail that is easy to get wrong.</p></li><li><p>Mention numeric limits, indexing conventions, or tie-breaking rules if relevant.</p></li></ul></div> </section> <script>
|
| 53 |
+
const ensureMathJax = () => {
|
| 54 |
+
if (window.MathJax?.typesetPromise) {
|
| 55 |
+
return Promise.resolve(window.MathJax);
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
if (window.__siteMathJaxPromise) {
|
| 59 |
+
return window.__siteMathJaxPromise;
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
window.MathJax = {
|
| 63 |
+
tex: {
|
| 64 |
+
tags: 'ams',
|
| 65 |
+
inlineMath: [
|
| 66 |
+
['\\(', '\\)'],
|
| 67 |
+
['$', '$'],
|
| 68 |
+
],
|
| 69 |
+
displayMath: [
|
| 70 |
+
['\\[', '\\]'],
|
| 71 |
+
['$$', '$$'],
|
| 72 |
+
],
|
| 73 |
+
processEscapes: true,
|
| 74 |
+
processEnvironments: true,
|
| 75 |
+
},
|
| 76 |
+
options: {
|
| 77 |
+
skipHtmlTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code'],
|
| 78 |
+
},
|
| 79 |
+
startup: {
|
| 80 |
+
typeset: false,
|
| 81 |
+
},
|
| 82 |
+
};
|
| 83 |
+
|
| 84 |
+
window.__siteMathJaxPromise = new Promise((resolve, reject) => {
|
| 85 |
+
const existingScript = document.getElementById('mathjax-script');
|
| 86 |
+
if (existingScript) {
|
| 87 |
+
existingScript.addEventListener('load', () => resolve(window.MathJax), { once: true });
|
| 88 |
+
existingScript.addEventListener('error', reject, { once: true });
|
| 89 |
+
return;
|
| 90 |
+
}
|
| 91 |
+
|
| 92 |
+
const script = document.createElement('script');
|
| 93 |
+
script.id = 'mathjax-script';
|
| 94 |
+
script.async = true;
|
| 95 |
+
script.src = 'https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js';
|
| 96 |
+
script.addEventListener('load', () => resolve(window.MathJax), { once: true });
|
| 97 |
+
script.addEventListener('error', reject, { once: true });
|
| 98 |
+
document.head.appendChild(script);
|
| 99 |
+
});
|
| 100 |
+
|
| 101 |
+
return window.__siteMathJaxPromise;
|
| 102 |
+
};
|
| 103 |
+
|
| 104 |
+
const renderMathContent = async () => {
|
| 105 |
+
const roots = Array.from(document.querySelectorAll('[data-cp-math-content]'));
|
| 106 |
+
if (!roots.length) {
|
| 107 |
+
return;
|
| 108 |
+
}
|
| 109 |
+
|
| 110 |
+
try {
|
| 111 |
+
await ensureMathJax();
|
| 112 |
+
for (const root of roots) {
|
| 113 |
+
if (root.dataset.mathRendered === 'true') {
|
| 114 |
+
continue;
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
await window.MathJax.typesetPromise([root]);
|
| 118 |
+
root.dataset.mathRendered = 'true';
|
| 119 |
+
}
|
| 120 |
+
} catch (error) {
|
| 121 |
+
console.error('Failed to render competitive programming math.', error);
|
| 122 |
+
}
|
| 123 |
+
};
|
| 124 |
+
|
| 125 |
+
const resetMathContent = () => {
|
| 126 |
+
document.querySelectorAll('[data-cp-math-content]').forEach((root) => {
|
| 127 |
+
if (root instanceof HTMLElement) {
|
| 128 |
+
root.dataset.mathRendered = 'false';
|
| 129 |
+
}
|
| 130 |
+
});
|
| 131 |
+
};
|
| 132 |
+
|
| 133 |
+
if (document.readyState === 'loading') {
|
| 134 |
+
document.addEventListener(
|
| 135 |
+
'DOMContentLoaded',
|
| 136 |
+
() => {
|
| 137 |
+
resetMathContent();
|
| 138 |
+
void renderMathContent();
|
| 139 |
+
},
|
| 140 |
+
{ once: true },
|
| 141 |
+
);
|
| 142 |
+
} else {
|
| 143 |
+
resetMathContent();
|
| 144 |
+
void renderMathContent();
|
| 145 |
+
}
|
| 146 |
+
|
| 147 |
+
document.addEventListener('astro:page-load', () => {
|
| 148 |
+
resetMathContent();
|
| 149 |
+
void renderMathContent();
|
| 150 |
+
});
|
| 151 |
+
</script> <section class="source-library panel" id="code" data-source-root="cp-code-icpc-2017-k-tarot-sham-boast" data-default-tab="cpp"> <div class="source-library__header"> <div> <span class="section-label">Implementation</span> <h2>Code</h2> <p>C++ solution used for this page.</p> </div> </div> <article class="source-panel is-active" data-source-panel="cpp"> <div class="source-panel__meta"> <div class="source-panel__copy"> <span class="metric">C++</span> <p>Clean code view with a raw-file link when you want the original source.</p> </div> <div class="source-panel__actions"> <a class="button button--ghost" href="/competitive-programming-assets/icpc/2017/K-tarot-sham-boast/solution.cpp">Raw file</a> <button class="source-copy" type="button" data-copy-target="cp-code-icpc-2017-k-tarot-sham-boast-cpp-code">
|
| 152 |
+
Copy
|
| 153 |
+
</button> </div> </div> <pre><code id="cp-code-icpc-2017-k-tarot-sham-boast-cpp-code" class="language-cpp">#include <bits/stdc++.h>
|
| 154 |
+
using namespace std;
|
| 155 |
+
|
| 156 |
+
namespace {
|
| 157 |
+
|
| 158 |
+
void solve() {
|
| 159 |
+
// Fill in the full solution logic for the problem here.
|
| 160 |
+
}
|
| 161 |
+
|
| 162 |
+
} // namespace
|
| 163 |
+
|
| 164 |
+
int main() {
|
| 165 |
+
ios::sync_with_stdio(false);
|
| 166 |
+
cin.tie(nullptr);
|
| 167 |
+
|
| 168 |
+
solve();
|
| 169 |
+
return 0;
|
| 170 |
+
}
|
| 171 |
+
</code></pre> </article> </section> <script>
|
| 172 |
+
const sourceRoots = document.querySelectorAll('[data-source-root]');
|
| 173 |
+
|
| 174 |
+
sourceRoots.forEach((root) => {
|
| 175 |
+
if (root.dataset.sourceInitialized === 'true') {
|
| 176 |
+
return;
|
| 177 |
+
}
|
| 178 |
+
|
| 179 |
+
const buttons = Array.from(root.querySelectorAll('[data-source-tab]'));
|
| 180 |
+
const panels = Array.from(root.querySelectorAll('[data-source-panel]'));
|
| 181 |
+
|
| 182 |
+
const setActive = (tabId) => {
|
| 183 |
+
buttons.forEach((button) => {
|
| 184 |
+
const isActive = button.dataset.sourceTab === tabId;
|
| 185 |
+
button.classList.toggle('is-active', isActive);
|
| 186 |
+
button.setAttribute('aria-selected', String(isActive));
|
| 187 |
+
});
|
| 188 |
+
|
| 189 |
+
panels.forEach((panel) => {
|
| 190 |
+
const isActive = panel.dataset.sourcePanel === tabId;
|
| 191 |
+
panel.classList.toggle('is-active', isActive);
|
| 192 |
+
panel.hidden = !isActive;
|
| 193 |
+
});
|
| 194 |
+
};
|
| 195 |
+
|
| 196 |
+
buttons.forEach((button) => {
|
| 197 |
+
button.addEventListener('click', () => setActive(button.dataset.sourceTab));
|
| 198 |
+
});
|
| 199 |
+
|
| 200 |
+
setActive(root.dataset.defaultTab ?? 'tex');
|
| 201 |
+
root.dataset.sourceInitialized = 'true';
|
| 202 |
+
});
|
| 203 |
+
</script> <section class="cp-resources panel" id="source-files"><div class="cp-resources__header"><span class="section-label">Resources</span><h2>Source Files and Assets</h2><p>Raw files are still available here when you want the original TeX, C++, or statement assets.</p></div><details class="cp-resources__details"><summary class="cp-resources__summary">Show raw files</summary><div class="cp-resources__grid"><a class="cp-resources__link" href="/competitive-programming-assets/icpc/2017/K-tarot-sham-boast/solution.tex"><strong>TeX write-up</strong><code>competitive_programming/icpc/2017/K-tarot-sham-boast/solution.tex</code></a><a class="cp-resources__link" href="/competitive-programming-assets/icpc/2017/K-tarot-sham-boast/solution.cpp"><strong>C++ implementation</strong><code>competitive_programming/icpc/2017/K-tarot-sham-boast/solution.cpp</code></a><a class="cp-resources__link" href="/competitive-programming-assets/icpc/2017/K-tarot-sham-boast/statement.txt"><strong>Statement text</strong><code>competitive_programming/icpc/2017/K-tarot-sham-boast/statement.txt</code></a><a class="cp-resources__link" href="/competitive-programming-assets/icpc/2017/K-tarot-sham-boast/statement.pdf"><strong>Statement PDF</strong><code>competitive_programming/icpc/2017/K-tarot-sham-boast/statement.pdf</code></a><a class="cp-resources__link" href="/competitive-programming-assets/icpc/2017/K-tarot-sham-boast/meta.json"><strong>Metadata</strong><code>competitive_programming/icpc/2017/K-tarot-sham-boast/meta.json</code></a><a class="cp-resources__link" href="/competitive-programming-assets/icpc/2017/contest_problems.pdf"><strong>Year packet</strong><code>competitive_programming/icpc/2017/contest_problems.pdf</code></a></div></details></section> <nav class="problem-pagination panel" aria-label="Archive navigation"><a class="problem-pagination__link" href="/competitive-programming/icpc/2017/j-son-of-pipe-stream" rel="prev"><span class="problem-pagination__label">Previous Problem</span><strong>ICPC2017</strong><span>J. Son of Pipe Stream</span></a><a class="problem-pagination__link problem-pagination__link--next" href="/competitive-programming/icpc/2017/l-visual-python" rel="next"><span class="problem-pagination__label">Next Problem</span><strong>ICPC2017</strong><span>L. Visual Python++</span></a></nav> </div> </div> <aside class="post-sidebar"> <div class="post-actions"> <a class="button" href="/competitive-programming/icpc/2017">Browse ICPC 2017</a> <a class="button button--ghost" href="/competitive-programming/icpc">All ICPC</a><a class="button button--ghost" href="/competitive-programming-assets/icpc/2017/K-tarot-sham-boast/statement.pdf">Statement PDF</a><a class="button button--ghost" href="/competitive-programming-assets/icpc/2017/contest_problems.pdf">Contest packet</a> </div> <nav class="toc" aria-label="Table of contents"><h2>On this page</h2><div class="toc__body"><ul class="toc__list"><li class="toc__item toc__item--depth-2"><a href="#problem-statement">Problem Statement</a></li><li class="toc__item toc__item--depth-2"><a href="#editorial">Editorial</a><ul class="toc__list"><li class="toc__item toc__item--depth-3"><a href="#cp-editorial-icpc-2017-k-tarot-sham-boast-key-observations">Key Observations</a></li><li class="toc__item toc__item--depth-3"><a href="#cp-editorial-icpc-2017-k-tarot-sham-boast-algorithm">Algorithm</a></li><li class="toc__item toc__item--depth-3"><a href="#cp-editorial-icpc-2017-k-tarot-sham-boast-correctness-proof">Correctness Proof</a></li><li class="toc__item toc__item--depth-3"><a href="#cp-editorial-icpc-2017-k-tarot-sham-boast-complexity-analysis">Complexity Analysis</a></li><li class="toc__item toc__item--depth-3"><a href="#cp-editorial-icpc-2017-k-tarot-sham-boast-implementation-notes">Implementation Notes</a></li></ul></li><li class="toc__item toc__item--depth-2"><a href="#code">Code</a></li><li class="toc__item toc__item--depth-2"><a href="#source-files">Source Files and Assets</a></li></ul></div></nav> </aside> </article> </main> <footer class="footer"> <div class="container"> <div class="footer__inner"> <div class="footer__identity"> <span class="footer__label">Endnote</span> <p class="footer__copy">
|
| 204 |
+
Personal site by Ethan Pham (Pham Van Nghia). Project Euler, competitive programming, essays,
|
| 205 |
+
and code notes from Ho Chi Minh City, Vietnam.
|
| 206 |
+
</p> </div> <p class="footer__tagline">Project Euler, competitive programming, and notes on the things I keep studying.</p> <nav class="footer-links" aria-label="Secondary"> <a class="footer-link nav-link" href="https://github.com/Nghia03092004"> GitHub </a><a class="footer-link nav-link" href="https://www.linkedin.com/in/ethan-pham03092004/?skipRedirect=true"> LinkedIn </a><a class="footer-link nav-link" href="https://projecteuler.net"> Project Euler </a><a class="footer-link nav-link" href="mailto:phamvannghia03092004@gmail.com"> Email </a><a class="footer-link nav-link" href="/feed.xml"> RSS </a> </nav> </div> </div> </footer> </div> <script type="module" src="data:text/javascript;base64,Y29uc3QgQ09QWV9MQUJFTCA9ICdDb3B5JzsKY29uc3QgQ09QSUVEX0xBQkVMID0gJ0NvcGllZCEnOwpjb25zdCBFUlJPUl9MQUJFTCA9ICdVbmF2YWlsYWJsZSc7CmNvbnN0IFJFU0VUX0RFTEFZX01TID0gMTUwMDsKY29uc3QgcmVzZXRUaW1lcnMgPSBuZXcgV2Vha01hcCgpOwoKbGV0IGdlbmVyYXRlZFRhcmdldENvdW50ID0gMDsKCmZ1bmN0aW9uIHNldEJ1dHRvbkxhYmVsKGJ1dHRvbiwgbGFiZWwpIHsKCWJ1dHRvbi50ZXh0Q29udGVudCA9IGxhYmVsOwp9CgpmdW5jdGlvbiByZXNldEJ1dHRvbkxhYmVsKGJ1dHRvbikgewoJY29uc3QgZGVmYXVsdExhYmVsID0gYnV0dG9uLmRhdGFzZXQuY29weURlZmF1bHRMYWJlbCB8fCBDT1BZX0xBQkVMOwoJc2V0QnV0dG9uTGFiZWwoYnV0dG9uLCBkZWZhdWx0TGFiZWwpOwp9CgpmdW5jdGlvbiBzY2hlZHVsZVJlc2V0KGJ1dHRvbikgewoJY29uc3QgcHJldmlvdXNUaW1lciA9IHJlc2V0VGltZXJzLmdldChidXR0b24pOwoJaWYgKHByZXZpb3VzV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/2017/K-tarot-sham-boast/solution.cpp
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#include <bits/stdc++.h>
|
| 2 |
+
using namespace std;
|
| 3 |
+
|
| 4 |
+
struct Prediction {
|
| 5 |
+
string text;
|
| 6 |
+
vector<unsigned char> overlap;
|
| 7 |
+
};
|
| 8 |
+
|
| 9 |
+
int main() {
|
| 10 |
+
ios::sync_with_stdio(false);
|
| 11 |
+
cin.tie(nullptr);
|
| 12 |
+
|
| 13 |
+
int n, s;
|
| 14 |
+
if (!(cin >> n >> s)) return 0;
|
| 15 |
+
|
| 16 |
+
vector<Prediction> predictions(s);
|
| 17 |
+
for (auto &p : predictions) {
|
| 18 |
+
cin >> p.text;
|
| 19 |
+
int m = (int)p.text.size();
|
| 20 |
+
int limit = min(m - 1, n - m);
|
| 21 |
+
p.overlap.assign(limit, 0);
|
| 22 |
+
|
| 23 |
+
vector<int> pi(m, 0);
|
| 24 |
+
for (int i = 1; i < m; ++i) {
|
| 25 |
+
int j = pi[i - 1];
|
| 26 |
+
while (j > 0 && p.text[i] != p.text[j]) {
|
| 27 |
+
j = pi[j - 1];
|
| 28 |
+
}
|
| 29 |
+
if (p.text[i] == p.text[j]) ++j;
|
| 30 |
+
pi[i] = j;
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
// A border of length len permits two occurrences at shift m-len.
|
| 34 |
+
// Only shifts at most n-m can fit into the match.
|
| 35 |
+
for (int len = pi[m - 1]; len > 0; len = pi[len - 1]) {
|
| 36 |
+
int shift = m - len;
|
| 37 |
+
if (shift > limit) break;
|
| 38 |
+
p.overlap[shift - 1] = 1;
|
| 39 |
+
}
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
// At the smallest differing shift, no overlap means higher likelihood.
|
| 43 |
+
stable_sort(predictions.begin(), predictions.end(),
|
| 44 |
+
[](const Prediction &a, const Prediction &b) {
|
| 45 |
+
return a.overlap < b.overlap;
|
| 46 |
+
});
|
| 47 |
+
|
| 48 |
+
for (const auto &p : predictions) {
|
| 49 |
+
cout << p.text << '\n';
|
| 50 |
+
}
|
| 51 |
+
return 0;
|
| 52 |
+
}
|
problems/MA-03/ICPC_WF/2017/K-tarot-sham-boast/solution.tex
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
\documentclass[11pt]{article}
|
| 2 |
+
\usepackage[margin=1in]{geometry}
|
| 3 |
+
\usepackage[T1]{fontenc}
|
| 4 |
+
\usepackage[utf8]{inputenc}
|
| 5 |
+
\usepackage{amsmath,amssymb,amsthm}
|
| 6 |
+
\usepackage{enumitem}
|
| 7 |
+
|
| 8 |
+
\title{ICPC World Finals 2017\\K. Tarot Sham Boast}
|
| 9 |
+
\author{}
|
| 10 |
+
\date{}
|
| 11 |
+
|
| 12 |
+
\begin{document}
|
| 13 |
+
\maketitle
|
| 14 |
+
|
| 15 |
+
\section*{Problem Summary}
|
| 16 |
+
|
| 17 |
+
Given $s$ predictions of a common length $m\le n$ over \texttt{R}, \texttt{P}, \texttt{S}, sort
|
| 18 |
+
them by the probability of appearing at least once as a contiguous substring in $n$ independent,
|
| 19 |
+
uniformly random symbols. Output in decreasing probability, retaining input order on ties.
|
| 20 |
+
|
| 21 |
+
\section*{Key Observations}
|
| 22 |
+
|
| 23 |
+
Every prediction matches a fixed window with probability $3^{-m}$, so expected occurrence counts
|
| 24 |
+
are equal. The probability of at least one occurrence depends on self-overlap instead.
|
| 25 |
+
|
| 26 |
+
For $1\le d<m$, let $c_w(d)=1$ if prediction $w$ has equal prefix and suffix of length $m-d$,
|
| 27 |
+
and $c_w(d)=0$ otherwise. Two copies can overlap at shift $d$ exactly when $c_w(d)=1$.
|
| 28 |
+
Equivalently, $m-d$ is a \emph{border}: a nonempty proper prefix that is also a suffix.
|
| 29 |
+
|
| 30 |
+
Two occurrences at shift $d$ need $m+d$ positions, so only $d\le n-m$ can matter. Shifts at least
|
| 31 |
+
$m$ give disjoint occurrences and behave identically for all predictions. Define
|
| 32 |
+
\[
|
| 33 |
+
L=\min(m-1,n-m),\qquad K(w)=(c_w(1),c_w(2),\ldots,c_w(L)).
|
| 34 |
+
\]
|
| 35 |
+
The key comparison rule is: at the first differing entry of $K(u)$ and $K(v)$, the prediction
|
| 36 |
+
with $0$ is more likely to appear. Equal keys mean equal probabilities. For this three-symbol
|
| 37 |
+
alphabet, later shifts cannot reverse this comparison, as proved below.
|
| 38 |
+
|
| 39 |
+
\section*{Algorithm}
|
| 40 |
+
|
| 41 |
+
\begin{enumerate}[leftmargin=*]
|
| 42 |
+
\item For each prediction, compute the KMP prefix-function array \texttt{pi}. Its entry
|
| 43 |
+
$\pi_i$ is the longest border length of the prefix ending at index $i$, or zero if none exists.
|
| 44 |
+
Process each character by extending the previous matched prefix, falling back through
|
| 45 |
+
$\pi_{j-1}$ on mismatches.
|
| 46 |
+
\item Initialize an \texttt{overlap} byte vector of length $L$ with zeros. Starting at
|
| 47 |
+
$\ell=\pi_{m-1}$, follow $\ell\gets\pi_{\ell-1}$ while $\ell>0$.
|
| 48 |
+
For each border, set $d=m-\ell$. If $d>L$, stop: subsequent borders are shorter and their
|
| 49 |
+
shifts are larger. Otherwise set \texttt{overlap[d-1]} to $1$.
|
| 50 |
+
Store the vector with the original string.
|
| 51 |
+
\item Use \texttt{stable\_sort} to sort these records by ascending lexicographic order of
|
| 52 |
+
their vectors, with $0$ before $1$. Output the stored strings in this order.
|
| 53 |
+
\end{enumerate}
|
| 54 |
+
|
| 55 |
+
\section*{Correctness Proof}
|
| 56 |
+
|
| 57 |
+
Let $a_w(k)$ count length-$k$ strings avoiding $w$, and let $f_w(k)$ count those whose first
|
| 58 |
+
occurrence of $w$ ends at the last position. Define formal generating functions
|
| 59 |
+
\[
|
| 60 |
+
A_w(z)=\sum_{k\ge0}a_w(k)z^k,\qquad F_w(z)=\sum_{k\ge0}f_w(k)z^k.
|
| 61 |
+
\]
|
| 62 |
+
Set $c_w(0)=1$ and define
|
| 63 |
+
\[
|
| 64 |
+
C_w(z)=\sum_{d=0}^{m-1}c_w(d)z^d,\qquad D_w(z)=(1-3z)C_w(z)+z^m.
|
| 65 |
+
\]
|
| 66 |
+
These series are only used in the proof. Write $[z^k]H(z)$ for the coefficient of $z^k$ in $H$.
|
| 67 |
+
|
| 68 |
+
\paragraph{Lemma 1.}
|
| 69 |
+
The counting functions satisfy
|
| 70 |
+
\[
|
| 71 |
+
F_w(z)=\frac{z^m}{D_w(z)},\qquad A_w(z)=\frac{C_w(z)}{D_w(z)}.
|
| 72 |
+
\]
|
| 73 |
+
|
| 74 |
+
\paragraph{Proof.}
|
| 75 |
+
All strings ending in $w$ have generating function $z^m/(1-3z)$. Decompose such a string at the
|
| 76 |
+
end of its first occurrence. If the final occurrence ends $d<m$ positions later, its extension
|
| 77 |
+
is possible exactly when $c_w(d)=1$, and is then unique. If $d\ge m$, the extension has $d-m$
|
| 78 |
+
arbitrary symbols followed by $w$, giving $3^{d-m}$ choices. Hence
|
| 79 |
+
\[
|
| 80 |
+
\frac{z^m}{1-3z}=F_w(z)\left(C_w(z)+\frac{z^m}{1-3z}\right),
|
| 81 |
+
\]
|
| 82 |
+
which gives $F_w$.
|
| 83 |
+
|
| 84 |
+
Appending one symbol to an avoiding string either leaves it avoiding or creates its first
|
| 85 |
+
occurrence at the end. Thus $a_w(k)=3a_w(k-1)-f_w(k)$ for $k\ge1$, with $a_w(0)=1$.
|
| 86 |
+
It follows that $(1-3z)A_w(z)=1-F_w(z)$, yielding the formula for $A_w$. \qed
|
| 87 |
+
|
| 88 |
+
\paragraph{Lemma 2.}
|
| 89 |
+
Ascending lexicographic order of $K(w)$ is exactly decreasing order of appearance probability,
|
| 90 |
+
including ties.
|
| 91 |
+
|
| 92 |
+
\paragraph{Proof.}
|
| 93 |
+
By Lemma 1,
|
| 94 |
+
\[
|
| 95 |
+
h_w(t)=[z^t]\frac{1}{D_w(z)}=f_w(m+t),\qquad h_w(0)=1.
|
| 96 |
+
\]
|
| 97 |
+
Prepend a symbol to a string counted by $h_w(t)$. Any new earlier occurrence must start at the
|
| 98 |
+
new first position. At most one of the three symbol choices can create it, so at least two
|
| 99 |
+
choices still have their first occurrence at the end. All these extensions are distinct,
|
| 100 |
+
giving $h_w(t+1)\ge2h_w(t)$.
|
| 101 |
+
|
| 102 |
+
For predictions $u,v$, let
|
| 103 |
+
\[
|
| 104 |
+
B(z)=\frac{1}{D_u(z)D_v(z)}=\sum_{t\ge0}b_tz^t.
|
| 105 |
+
\]
|
| 106 |
+
The coefficients are the convolution of the nonnegative sequences $h_u,h_v$. Their growth
|
| 107 |
+
implies $b_0=1$ and $b_t\ge2b_{t-1}$ for $t\ge1$. Consequently,
|
| 108 |
+
\[
|
| 109 |
+
\sum_{j=0}^{t-1}b_j<b_t
|
| 110 |
+
\]
|
| 111 |
+
for every $t\ge0$, taking the sum to be empty when $t=0$.
|
| 112 |
+
|
| 113 |
+
By Lemma 1,
|
| 114 |
+
\[
|
| 115 |
+
A_u(z)-A_v(z)=z^m\bigl(C_u(z)-C_v(z)\bigr)B(z).
|
| 116 |
+
\]
|
| 117 |
+
If $K(u)=K(v)$, all coefficients of $C_u-C_v$ through degree $n-m$ are zero. Thus the
|
| 118 |
+
coefficient of $z^n$ above is zero, and their avoidance counts and appearance probabilities tie.
|
| 119 |
+
|
| 120 |
+
Otherwise, let $d\le L$ be the first differing shift and $t=n-m-d\ge0$. The coefficient of
|
| 121 |
+
$z^n$ on the right is $(c_u(d)-c_v(d))b_t$ plus contributions from later shifts. Each later
|
| 122 |
+
contribution is a distinct earlier coefficient $b_j$ multiplied by $-1$, $0$, or $1$.
|
| 123 |
+
Their total absolute value is less than $b_t$, so the sign is determined by $c_u(d)-c_v(d)$.
|
| 124 |
+
If $K(u)$ is smaller, this sign is negative, giving $a_u(n)<a_v(n)$.
|
| 125 |
+
The appearance probability is $1-a_w(n)/3^n$, so $u$ is strictly more likely.
|
| 126 |
+
This establishes both the ordering and the ties. \qed
|
| 127 |
+
|
| 128 |
+
\paragraph{Theorem.}
|
| 129 |
+
The algorithm outputs the predictions in the required order.
|
| 130 |
+
|
| 131 |
+
\paragraph{Proof.}
|
| 132 |
+
Every shorter border of a string is also a border of its longest border, and every border of a
|
| 133 |
+
border is a border of the original string. Thus following prefix-function links enumerates
|
| 134 |
+
exactly all proper borders. Marking shift $m-\ell$ constructs $K(w)$, and the early stop is safe
|
| 135 |
+
because border lengths decrease along the chain.
|
| 136 |
+
Lemma 2 shows that sorting these keys in ascending order sorts probabilities in decreasing
|
| 137 |
+
order. Equal keys are exactly the probability ties, and \texttt{stable\_sort} preserves their
|
| 138 |
+
input order. Printing the stored strings therefore gives the required output. \qed
|
| 139 |
+
|
| 140 |
+
\section*{Complexity Analysis}
|
| 141 |
+
|
| 142 |
+
Prefix functions and border chains take $O(sm)$ time. Each vector comparison costs $O(L+1)$,
|
| 143 |
+
and sorting uses $O(s\log s)$ comparisons. Total time is $O(sm+s(L+1)\log s)$, at most
|
| 144 |
+
$O(sm\log(s+1))$. Strings and keys occupy $O(sm+sL)$ space, with $O(m)$ for the temporary
|
| 145 |
+
prefix-function array and $O(s)$ sorting workspace, so total memory is $O(sm)$.
|
| 146 |
+
|
| 147 |
+
\section*{Implementation Notes}
|
| 148 |
+
|
| 149 |
+
\begin{itemize}[leftmargin=*]
|
| 150 |
+
\item Entries of \texttt{overlap} are \texttt{unsigned char} values $0$ or $1$; ordinary
|
| 151 |
+
vector comparison gives the desired order.
|
| 152 |
+
\item Truncating to $L$ is essential: an overlap that cannot fit must not break a tie.
|
| 153 |
+
When $n=m$ or $m=1$, $L=0$, all keys are empty, and input order is retained.
|
| 154 |
+
\end{itemize}
|
| 155 |
+
|
| 156 |
+
\end{document}
|
problems/MA-03/ICPC_WF/2017/K-tarot-sham-boast/statement.txt
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Rapid City
|
| 2 |
+
|
| 3 |
+
event
|
| 4 |
+
sponsor
|
| 5 |
+
ICPC 2017
|
| 6 |
+
|
| 7 |
+
Problem K
|
| 8 |
+
Tarot Sham Boast
|
| 9 |
+
Time limit: 2 seconds
|
| 10 |
+
Curse your rival! Every year at the annual Rock Paper Scissors tournament, you have made it to the final
|
| 11 |
+
match. (Your Rock technique is unmatched, and your Paper cuts to the bone! Your Scissors need a little
|
| 12 |
+
work, though.) But every year, he defeats you, even though his moves appear entirely random! And he
|
| 13 |
+
claims to the press that he simply cannot be beaten. What is his secret?
|
| 14 |
+
Fortunately, you think you have figured it out. This year, just before the tournament, you caught him visiting
|
| 15 |
+
various shamans around town. Aha! He is using the supernatural against you! You figured two can play at
|
| 16 |
+
this game. So you went and visited a set of fortune-tellers, who have each used a Tarot deck to predict a
|
| 17 |
+
sequence that your rival will end up using, sometime during the match.
|
| 18 |
+
However, your initial excitement has passed, and now you are feeling a little silly. This cannot possibly
|
| 19 |
+
work, right? In the end it feels like you have paid good money for a fraudulent, random set of predictions.
|
| 20 |
+
Oh well; you might as well keep an eye out for some of them during the match. But which predictions will
|
| 21 |
+
you use?
|
| 22 |
+
In the final match, you and your rival will play n rounds of Rock Paper Scissors. In each round, your rival
|
| 23 |
+
and you will both choose one of the three options (Rock, Paper, or Scissors). Based on your selections, a
|
| 24 |
+
winner of the round will be determined (exactly how is irrelevant to this problem).
|
| 25 |
+
Given the length of the final match and the various predictions, sort them in order of how likely they are to
|
| 26 |
+
appear sometime during the match as a contiguous sequence of options chosen by your rival, assuming he
|
| 27 |
+
is choosing his symbol in each round independently and uniformly at random.
|
| 28 |
+
|
| 29 |
+
Input
|
| 30 |
+
|
| 31 |
+
The first line of input contains two integers n (1 ≤ n ≤ 10^6), the number of rounds in the final match, and
|
| 32 |
+
s (1 ≤ s ≤ 10), the number of sequences. The remaining s lines each describe a prediction, consisting
|
| 33 |
+
of a string of characters ‘R’, ‘P’, and ‘S’. All predictions have the same length, which is between 1 and n
|
| 34 |
+
characters long, inclusive, and no longer than 10^5.
|
| 35 |
+
|
| 36 |
+
Output
|
| 37 |
+
|
| 38 |
+
Display all of the predictions, sorted by decreasing likelihood of appearance sometime during the final
|
| 39 |
+
match. In the case of tied predictions, display them in the same order as in the input.
|
| 40 |
+
|
| 41 |
+
Sample Input 1 Sample Output 1
|
| 42 |
+
3 4 PS
|
| 43 |
+
PP PP
|
| 44 |
+
RR RR
|
| 45 |
+
PS SS
|
| 46 |
+
SS
|
| 47 |
+
|
| 48 |
+
Rapid City
|
| 49 |
+
|
| 50 |
+
event
|
| 51 |
+
sponsor
|
| 52 |
+
ICPC 2017
|
| 53 |
+
|
| 54 |
+
Sample Input 2 Sample Output 2
|
| 55 |
+
20 3 PRSPS
|
| 56 |
+
PRSPS PPSPP
|
| 57 |
+
SSSSS SSSSS
|
| 58 |
+
PPSPP
|
problems/MA-03/ICPC_WF/2018/D-gem-island/data/sample-2.ans
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
4.9
|
problems/MA-03/ICPC_WF/2018/D-gem-island/data/sample-3.ans
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
12.2567433
|
problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0001-0001-0001.in
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
1 1 1
|
problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0001-0002-0001.ans
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
3.0000000
|
problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0001-0010-0001.ans
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
11.0000000
|
problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0001-0444-0001.ans
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
445.0000000
|
problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0002-0001-0002.ans
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
3.0000000
|
problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0002-0002-0001.in
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
2 2 1
|
problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0002-0002-0002.in
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
2 2 2
|
problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0002-0010-0001.ans
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
8.7272727
|
problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0002-0100-0001.in
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
2 100 1
|
problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0002-0277-0001.in
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
2 277 1
|
problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0002-0500-0002.in
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
2 500 2
|
problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0003-0001-0001.ans
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
2.0000000
|
problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0003-0001-0002.ans
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
3.0000000
|
problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0003-0099-0001.ans
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
61.9136634
|
problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0003-0142-0002.ans
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
128.5524476
|
problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0004-0001-0001.ans
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
2.0000000
|
problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0004-0001-0001.in
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
4 1 1
|
problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0004-0055-0001.ans
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
30.1783770
|
problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0004-0055-0002.ans
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
46.1110967
|
problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0004-0055-0002.in
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
4 55 2
|
problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0004-0055-0003.ans
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
54.9210526
|
problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0005-0005-0001.in
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
5 5 1
|
problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0005-0020-0003.ans
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
21.0102579
|
problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0005-0020-0003.in
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
5 20 3
|
problems/MA-03/ICPC_WF/2018/D-gem-island/data/secret-0010-0005-0002.in
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
10 5 2
|