# azerui1/competitive-programming architecture

> Architecture diagram of the GitHub repository azerui1/competitive-programming, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/azerui1/competitive-programming
- Repository: https://github.com/azerui1/competitive-programming

## Overview

This is a personal competitive-programming practice workspace, not a hosted application. Its documented workflow is to choose a problem, develop and optimize a solution, save it with notes, and revisit difficult work. The repository supports that practice with language templates, a C++ working area, and a small archive of problem write-ups. Source excerpts show template entry points and C++ helpers, but not how the codespace runner or compiler script is used; those relationships are therefore omitted.

Main entry points: [`codespace/main.cpp`](https://github.com/azerui1/competitive-programming/blob/main/codespace/main.cpp) (C++ working solution), [`templates/cpp/template.cpp`](https://github.com/azerui1/competitive-programming/blob/main/templates/cpp/template.cpp) (C++ template), [`templates/java/Main.java`](https://github.com/azerui1/competitive-programming/blob/main/templates/java/Main.java) (Java template), [`templates/python/template.py`](https://github.com/azerui1/competitive-programming/blob/main/templates/python/template.py) (Python template)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_practice["Practice workspace"]
  node_cpp_workspace["C++ working solution<br/>[main.cpp]"]
end

subgraph group_templates["Language templates"]
  node_cpp_template["C++ template<br/>[template.cpp]"]
  node_java_template["Java template<br/>[Main.java]"]
  node_python_template["Python template<br/>[template.py]"]
end

subgraph group_archive["Problem archive"]
  node_writeups["Problem write-ups"]
end

node_practitioner(("Practitioner"))
node_problem["Selected problem"]

node_practitioner -->|"picks"| node_problem
node_practitioner -->|"develops solution"| node_cpp_workspace
node_practitioner -->|"saves write-ups"| node_writeups
node_practitioner -.->|"uses template"| node_cpp_template
node_practitioner -.->|"uses template"| node_java_template
node_practitioner -.->|"uses template"| node_python_template

click node_cpp_workspace "https://github.com/azerui1/competitive-programming/blob/main/codespace/main.cpp"
click node_cpp_template "https://github.com/azerui1/competitive-programming/blob/main/templates/cpp/template.cpp"
click node_java_template "https://github.com/azerui1/competitive-programming/blob/main/templates/java/Main.java"
click node_python_template "https://github.com/azerui1/competitive-programming/blob/main/templates/python/template.py"
click node_writeups "https://github.com/azerui1/competitive-programming/tree/main/usaco-guide"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_cpp_workspace toneBlue
class node_cpp_template,node_java_template,node_python_template toneAmber
class node_writeups toneMint
class node_practitioner,node_problem toneIndigo
```

## Components

### Practice workspace

- [C++ working solution](https://github.com/azerui1/competitive-programming/blob/main/codespace/main.cpp): `codespace/main.cpp`

### Language templates

- [C++ template](https://github.com/azerui1/competitive-programming/blob/main/templates/cpp/template.cpp): `templates/cpp/template.cpp`
- [Java template](https://github.com/azerui1/competitive-programming/blob/main/templates/java/Main.java): `templates/java/Main.java`
- [Python template](https://github.com/azerui1/competitive-programming/blob/main/templates/python/template.py): `templates/python/template.py`

### Problem archive

- [Problem write-ups](https://github.com/azerui1/competitive-programming/tree/main/usaco-guide): `usaco-guide`

### Other components

- **Practitioner**
- **Selected problem**

## Connections

- Practitioner → Selected problem: picks (evidence: `README.md`)
- Practitioner → C++ working solution: develops solution (evidence: `README.md`)
- Practitioner → Problem write-ups: saves write-ups (evidence: `README.md`)
- Practitioner → C++ template: uses template
- Practitioner → Java template: uses template
- Practitioner → Python template: uses template
