How chai-ming-yang/competitive-programming-muscle-memory works
This repository is a personal competitive-programming archive: standalone solutions for historical contest problems, reusable algorithm templates in C++ and Python, and a small set of programming notes. A solver takes problem input, applies its local algorithm, and prints an answer; templates are independent snippets rather than a shared runtime framework. Sampled code demonstrates graph algorithms, linear algebra, pathfinding, and offline dynamic connectivity. The tree supports the major branches, but no README explains organization or usage, and most solutions were not inspected.
Main entry points: 2020_a/F.py Max-flow solution · 2026_a/F.py Dynamic connectivity · H.py Linear systems · E.py Grid pathfinding
Components 19
Contest solutions
- Standalone solutions
past-competitions/ProSolve - Max-flow solution
past-competitions/ProSolve/2020_a/F.py - Dynamic connectivity
past-competitions/ProSolve/2026_a/F.py - Linear systems
past-competitions/ProSolve/2018_a/H.py - Grid pathfinding
past-competitions/ProSolve/2018_b/E.py
C++ templates
- Graph algorithms
template - Search and structures
template - Math and matrices
template - Tree algorithms
template - C++ starter
template/template.cpp
Python templates
- Graph algorithms
template_py - Search and structures
template_py - Math and matrices
template_py - Tree algorithms
template_py
Programming notes
- Language references
notes - Algorithm notes
past-competitions/ProSolve/TODO - Math.py
Other components
- Problem solver
- Problem input
- Printed answer
Connections 21
- Problem solver → Problem input: provides
- Problem input → Standalone solutions: solves independently
- Problem input → Max-flow solution: reads input
past-competitions/ProSolve/2020_a/F.py - Max-flow solution → Printed answer: prints flow
past-competitions/ProSolve/2020_a/F.py - Problem input → Dynamic connectivity: reads operations
past-competitions/ProSolve/2026_a/F.py - Dynamic connectivity → Printed answer: prints counts
past-competitions/ProSolve/2026_a/F.py - Problem input → Linear systems: reads matrix
past-competitions/ProSolve/2018_a/H.py - Linear systems → Printed answer: prints solution
past-competitions/ProSolve/2018_a/H.py - Problem input → Grid pathfinding: reads grid
past-competitions/ProSolve/2018_b/E.py - Grid pathfinding → Printed answer: prints path
past-competitions/ProSolve/2018_b/E.py - Problem solver → C++ starter: adapts template
- Problem solver → Graph algorithms: uses snippets
- Problem solver → Search and structures: uses snippets
- Problem solver → Math and matrices: uses snippets
- Problem solver → Tree algorithms: uses snippets
- Problem solver → Graph algorithms: uses snippets
- Problem solver → Search and structures: uses snippets
- Problem solver → Math and matrices: uses snippets
- Problem solver → Tree algorithms: uses snippets
- Problem solver → Language references: consults
- Problem solver → Algorithm notes: consults