# jon5307/ps architecture

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

- Interactive diagram: https://gitdiagram.com/jon5307/ps
- Repository: https://github.com/jon5307/ps

## Overview

This repository is a collection of independent Baekjoon judge submissions, not a shared application: each solution reads a problem-specific input, computes an answer, and prints it. The principal workflow is judge input → one standalone solution → judge output. The examples show arithmetic, combinatorics, search, simulation, and data-structure problems; the tree also contains many other independent solutions. Edges reflect only the sampled programs’ visible input/output behavior; no shared runtime or cross-solution calls are evidenced.

Main entry points: [`백준/Bronze/10757. 큰 수 A＋B/큰 수 A＋B.c`](https://github.com/jon5307/ps/blob/main/%EB%B0%B1%EC%A4%80/Bronze/10757.%E2%80%85%ED%81%B0%E2%80%85%EC%88%98%E2%80%85A%EF%BC%8BB/%ED%81%B0%E2%80%85%EC%88%98%E2%80%85A%EF%BC%8BB.c) (Big integer sum), [`백준/Bronze/11113. The Traveling Orienteerer/The Traveling Orienteerer.py`](https://github.com/jon5307/ps/blob/main/%EB%B0%B1%EC%A4%80/Bronze/11113.%E2%80%85The%E2%80%85Traveling%E2%80%85Orienteerer/The%E2%80%85Traveling%E2%80%85Orienteerer.py) (Route distance), [`백준/Silver/10866. 덱/덱.py`](https://github.com/jon5307/ps/blob/main/%EB%B0%B1%EC%A4%80/Silver/10866.%E2%80%85%EB%8D%B1/%EB%8D%B1.py) (Deque commands), [`백준/Silver/2667. 단지번호붙이기/단지번호붙이기.py`](https://github.com/jon5307/ps/blob/main/%EB%B0%B1%EC%A4%80/Silver/2667.%E2%80%85%EB%8B%A8%EC%A7%80%EB%B2%88%ED%98%B8%EB%B6%99%EC%9D%B4%EA%B8%B0/%EB%8B%A8%EC%A7%80%EB%B2%88%ED%98%B8%EB%B6%99%EC%9D%B4%EA%B8%B0.py) (Grid components)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_basic["Basic Problems"]
  node_bigadd["Big integer sum<br/>[큰 수 A＋B.c]"]
  node_travel["Route distance"]
  node_deque["Deque commands<br/>[덱.py]"]
end

subgraph group_search["Search Problems"]
  node_districts["Grid components<br/>[단지번호붙이기.py]"]
  node_campus["Campus traversal<br/>[헌내기는 친구가 필요해.py]"]
  node_tomatoes["3D propagation<br/>[토마토.py]"]
  node_bishops["Bishop placement<br/>[비숍.py]"]
end

subgraph group_simulation["Simulation Problems"]
  node_pet["Pet simulation<br/>[펫.py]"]
  node_tilegame["2048 search<br/>[2048 （Easy）.py]"]
  node_tetromino["Tetromino scoring<br/>[테트로미노.py]"]
end

subgraph group_math["Math Problems"]
  node_binomial["Binomial queries<br/>[이항 계수와 쿼리.py]"]
  node_planetmst["Planet MST<br/>[행성 터널.py]"]
end

node_judge(("Baekjoon judge"))

node_judge -->|"provides input"| node_bigadd
node_bigadd -->|"prints answer"| node_judge
node_judge -->|"provides input"| node_travel
node_travel -->|"prints answers"| node_judge
node_judge -->|"provides input"| node_pet
node_pet -->|"prints status"| node_judge
node_judge -->|"provides commands"| node_deque
node_deque -->|"prints results"| node_judge
node_judge -->|"provides grid"| node_districts
node_districts -->|"prints counts"| node_judge
node_judge -->|"provides campus"| node_campus
node_campus -->|"prints count"| node_judge
node_judge -->|"provides grid"| node_tomatoes
node_tomatoes -->|"prints days"| node_judge
node_judge -->|"provides board"| node_tilegame
node_tilegame -->|"prints maximum"| node_judge
node_judge -->|"provides board"| node_tetromino
node_tetromino -->|"prints maximum"| node_judge
node_judge -->|"provides board"| node_bishops
node_bishops -->|"prints maximum"| node_judge
node_judge -->|"provides queries"| node_binomial
node_binomial -->|"prints answers"| node_judge
node_judge -->|"provides coordinates"| node_planetmst
node_planetmst -->|"prints cost"| node_judge

click node_bigadd "https://github.com/jon5307/ps/blob/main/%EB%B0%B1%EC%A4%80/Bronze/10757.%E2%80%85%ED%81%B0%E2%80%85%EC%88%98%E2%80%85A%EF%BC%8BB/%ED%81%B0%E2%80%85%EC%88%98%E2%80%85A%EF%BC%8BB.c"
click node_travel "https://github.com/jon5307/ps/blob/main/%EB%B0%B1%EC%A4%80/Bronze/11113.%E2%80%85The%E2%80%85Traveling%E2%80%85Orienteerer/The%E2%80%85Traveling%E2%80%85Orienteerer.py"
click node_pet "https://github.com/jon5307/ps/blob/main/%EB%B0%B1%EC%A4%80/Bronze/1362.%E2%80%85%ED%8E%AB/%ED%8E%AB.py"
click node_deque "https://github.com/jon5307/ps/blob/main/%EB%B0%B1%EC%A4%80/Silver/10866.%E2%80%85%EB%8D%B1/%EB%8D%B1.py"
click node_districts "https://github.com/jon5307/ps/blob/main/%EB%B0%B1%EC%A4%80/Silver/2667.%E2%80%85%EB%8B%A8%EC%A7%80%EB%B2%88%ED%98%B8%EB%B6%99%EC%9D%B4%EA%B8%B0/%EB%8B%A8%EC%A7%80%EB%B2%88%ED%98%B8%EB%B6%99%EC%9D%B4%EA%B8%B0.py"
click node_campus "https://github.com/jon5307/ps/blob/main/%EB%B0%B1%EC%A4%80/Silver/21736.%E2%80%85%ED%97%8C%EB%82%B4%EA%B8%B0%EB%8A%94%E2%80%85%EC%B9%9C%EA%B5%AC%EA%B0%80%E2%80%85%ED%95%84%EC%9A%94%ED%95%B4/%ED%97%8C%EB%82%B4%EA%B8%B0%EB%8A%94%E2%80%85%EC%B9%9C%EA%B5%AC%EA%B0%80%E2%80%85%ED%95%84%EC%9A%94%ED%95%B4.py"
click node_tomatoes "https://github.com/jon5307/ps/blob/main/%EB%B0%B1%EC%A4%80/Gold/7569.%E2%80%85%ED%86%A0%EB%A7%88%ED%86%A0/%ED%86%A0%EB%A7%88%ED%86%A0.py"
click node_tilegame "https://github.com/jon5307/ps/blob/main/%EB%B0%B1%EC%A4%80/Gold/12100.%E2%80%852048%E2%80%85%EF%BC%88Easy%EF%BC%89/2048%E2%80%85%EF%BC%88Easy%EF%BC%89.py"
click node_tetromino "https://github.com/jon5307/ps/blob/main/%EB%B0%B1%EC%A4%80/Gold/14500.%E2%80%85%ED%85%8C%ED%8A%B8%EB%A1%9C%EB%AF%B8%EB%85%B8/%ED%85%8C%ED%8A%B8%EB%A1%9C%EB%AF%B8%EB%85%B8.py"
click node_bishops "https://github.com/jon5307/ps/blob/main/%EB%B0%B1%EC%A4%80/Platinum/1799.%E2%80%85%EB%B9%84%EC%88%8D/%EB%B9%84%EC%88%8D.py"
click node_binomial "https://github.com/jon5307/ps/blob/main/%EB%B0%B1%EC%A4%80/Platinum/13977.%E2%80%85%EC%9D%B4%ED%95%AD%E2%80%85%EA%B3%84%EC%88%98%EC%99%80%E2%80%85%EC%BF%BC%EB%A6%AC/%EC%9D%B4%ED%95%AD%E2%80%85%EA%B3%84%EC%88%98%EC%99%80%E2%80%85%EC%BF%BC%EB%A6%AC.py"
click node_planetmst "https://github.com/jon5307/ps/blob/main/%EB%B0%B1%EC%A4%80/Platinum/2887.%E2%80%85%ED%96%89%EC%84%B1%E2%80%85%ED%84%B0%EB%84%90/%ED%96%89%EC%84%B1%E2%80%85%ED%84%B0%EB%84%90.py"

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_bigadd,node_travel,node_deque toneBlue
class node_districts,node_campus,node_tomatoes,node_bishops toneAmber
class node_pet,node_tilegame,node_tetromino toneMint
class node_binomial,node_planetmst toneRose
class node_judge toneIndigo
```

## Components

### Basic Problems

- [Big integer sum](https://github.com/jon5307/ps/blob/main/%EB%B0%B1%EC%A4%80/Bronze/10757.%E2%80%85%ED%81%B0%E2%80%85%EC%88%98%E2%80%85A%EF%BC%8BB/%ED%81%B0%E2%80%85%EC%88%98%E2%80%85A%EF%BC%8BB.c): `백준/Bronze/10757. 큰 수 A＋B/큰 수 A＋B.c`
- [Route distance](https://github.com/jon5307/ps/blob/main/%EB%B0%B1%EC%A4%80/Bronze/11113.%E2%80%85The%E2%80%85Traveling%E2%80%85Orienteerer/The%E2%80%85Traveling%E2%80%85Orienteerer.py): `백준/Bronze/11113. The Traveling Orienteerer/The Traveling Orienteerer.py`
- [Deque commands](https://github.com/jon5307/ps/blob/main/%EB%B0%B1%EC%A4%80/Silver/10866.%E2%80%85%EB%8D%B1/%EB%8D%B1.py): `백준/Silver/10866. 덱/덱.py`

### Search Problems

- [Grid components](https://github.com/jon5307/ps/blob/main/%EB%B0%B1%EC%A4%80/Silver/2667.%E2%80%85%EB%8B%A8%EC%A7%80%EB%B2%88%ED%98%B8%EB%B6%99%EC%9D%B4%EA%B8%B0/%EB%8B%A8%EC%A7%80%EB%B2%88%ED%98%B8%EB%B6%99%EC%9D%B4%EA%B8%B0.py): `백준/Silver/2667. 단지번호붙이기/단지번호붙이기.py`
- [Campus traversal](https://github.com/jon5307/ps/blob/main/%EB%B0%B1%EC%A4%80/Silver/21736.%E2%80%85%ED%97%8C%EB%82%B4%EA%B8%B0%EB%8A%94%E2%80%85%EC%B9%9C%EA%B5%AC%EA%B0%80%E2%80%85%ED%95%84%EC%9A%94%ED%95%B4/%ED%97%8C%EB%82%B4%EA%B8%B0%EB%8A%94%E2%80%85%EC%B9%9C%EA%B5%AC%EA%B0%80%E2%80%85%ED%95%84%EC%9A%94%ED%95%B4.py): `백준/Silver/21736. 헌내기는 친구가 필요해/헌내기는 친구가 필요해.py`
- [3D propagation](https://github.com/jon5307/ps/blob/main/%EB%B0%B1%EC%A4%80/Gold/7569.%E2%80%85%ED%86%A0%EB%A7%88%ED%86%A0/%ED%86%A0%EB%A7%88%ED%86%A0.py): `백준/Gold/7569. 토마토/토마토.py`
- [Bishop placement](https://github.com/jon5307/ps/blob/main/%EB%B0%B1%EC%A4%80/Platinum/1799.%E2%80%85%EB%B9%84%EC%88%8D/%EB%B9%84%EC%88%8D.py): `백준/Platinum/1799. 비숍/비숍.py`

### Simulation Problems

- [Pet simulation](https://github.com/jon5307/ps/blob/main/%EB%B0%B1%EC%A4%80/Bronze/1362.%E2%80%85%ED%8E%AB/%ED%8E%AB.py): `백준/Bronze/1362. 펫/펫.py`
- [2048 search](https://github.com/jon5307/ps/blob/main/%EB%B0%B1%EC%A4%80/Gold/12100.%E2%80%852048%E2%80%85%EF%BC%88Easy%EF%BC%89/2048%E2%80%85%EF%BC%88Easy%EF%BC%89.py): `백준/Gold/12100. 2048 （Easy）/2048 （Easy）.py`
- [Tetromino scoring](https://github.com/jon5307/ps/blob/main/%EB%B0%B1%EC%A4%80/Gold/14500.%E2%80%85%ED%85%8C%ED%8A%B8%EB%A1%9C%EB%AF%B8%EB%85%B8/%ED%85%8C%ED%8A%B8%EB%A1%9C%EB%AF%B8%EB%85%B8.py): `백준/Gold/14500. 테트로미노/테트로미노.py`

### Math Problems

- [Binomial queries](https://github.com/jon5307/ps/blob/main/%EB%B0%B1%EC%A4%80/Platinum/13977.%E2%80%85%EC%9D%B4%ED%95%AD%E2%80%85%EA%B3%84%EC%88%98%EC%99%80%E2%80%85%EC%BF%BC%EB%A6%AC/%EC%9D%B4%ED%95%AD%E2%80%85%EA%B3%84%EC%88%98%EC%99%80%E2%80%85%EC%BF%BC%EB%A6%AC.py): `백준/Platinum/13977. 이항 계수와 쿼리/이항 계수와 쿼리.py`
- [Planet MST](https://github.com/jon5307/ps/blob/main/%EB%B0%B1%EC%A4%80/Platinum/2887.%E2%80%85%ED%96%89%EC%84%B1%E2%80%85%ED%84%B0%EB%84%90/%ED%96%89%EC%84%B1%E2%80%85%ED%84%B0%EB%84%90.py): `백준/Platinum/2887. 행성 터널/행성 터널.py`

### Other components

- **Baekjoon judge**

## Connections

- Baekjoon judge → Big integer sum: provides input (evidence: `백준/Bronze/10757. 큰 수 A＋B/큰 수 A＋B.c`)
- Big integer sum → Baekjoon judge: prints answer (evidence: `백준/Bronze/10757. 큰 수 A＋B/큰 수 A＋B.c`)
- Baekjoon judge → Route distance: provides input (evidence: `백준/Bronze/11113. The Traveling Orienteerer/The Traveling Orienteerer.py`)
- Route distance → Baekjoon judge: prints answers (evidence: `백준/Bronze/11113. The Traveling Orienteerer/The Traveling Orienteerer.py`)
- Baekjoon judge → Pet simulation: provides input (evidence: `백준/Bronze/1362. 펫/펫.py`)
- Pet simulation → Baekjoon judge: prints status (evidence: `백준/Bronze/1362. 펫/펫.py`)
- Baekjoon judge → Deque commands: provides commands (evidence: `백준/Silver/10866. 덱/덱.py`)
- Deque commands → Baekjoon judge: prints results (evidence: `백준/Silver/10866. 덱/덱.py`)
- Baekjoon judge → Grid components: provides grid (evidence: `백준/Silver/2667. 단지번호붙이기/단지번호붙이기.py`)
- Grid components → Baekjoon judge: prints counts (evidence: `백준/Silver/2667. 단지번호붙이기/단지번호붙이기.py`)
- Baekjoon judge → Campus traversal: provides campus (evidence: `백준/Silver/21736. 헌내기는 친구가 필요해/헌내기는 친구가 필요해.py`)
- Campus traversal → Baekjoon judge: prints count (evidence: `백준/Silver/21736. 헌내기는 친구가 필요해/헌내기는 친구가 필요해.py`)
- Baekjoon judge → 3D propagation: provides grid (evidence: `백준/Gold/7569. 토마토/토마토.py`)
- 3D propagation → Baekjoon judge: prints days (evidence: `백준/Gold/7569. 토마토/토마토.py`)
- Baekjoon judge → 2048 search: provides board (evidence: `백준/Gold/12100. 2048 （Easy）/2048 （Easy）.py`)
- 2048 search → Baekjoon judge: prints maximum (evidence: `백준/Gold/12100. 2048 （Easy）/2048 （Easy）.py`)
- Baekjoon judge → Tetromino scoring: provides board (evidence: `백준/Gold/14500. 테트로미노/테트로미노.py`)
- Tetromino scoring → Baekjoon judge: prints maximum (evidence: `백준/Gold/14500. 테트로미노/테트로미노.py`)
- Baekjoon judge → Bishop placement: provides board (evidence: `백준/Platinum/1799. 비숍/비숍.py`)
- Bishop placement → Baekjoon judge: prints maximum (evidence: `백준/Platinum/1799. 비숍/비숍.py`)
- Baekjoon judge → Binomial queries: provides queries (evidence: `백준/Platinum/13977. 이항 계수와 쿼리/이항 계수와 쿼리.py`)
- Binomial queries → Baekjoon judge: prints answers (evidence: `백준/Platinum/13977. 이항 계수와 쿼리/이항 계수와 쿼리.py`)
- Baekjoon judge → Planet MST: provides coordinates (evidence: `백준/Platinum/2887. 행성 터널/행성 터널.py`)
- Planet MST → Baekjoon judge: prints cost (evidence: `백준/Platinum/2887. 행성 터널/행성 터널.py`)
