# dunblx05/boj architecture

> Architecture diagram of the GitHub repository dunblx05/boj, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-05-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/dunblx05/boj
- Repository: https://github.com/dunblx05/boj

## Overview

##### Project Type and Purpose
- This is a monolithic “solutions repository” (monorepo) for competitive‐programming problems. It is _not_ a runtime service but a structured collection of problem‐solution pairs organized by online judge and difficulty.

##### File‐Structure Analysis
- Top‐level directories:
- SWEA – Solutions for Samsung SW Expert Academy, further subdivided by difficulty levels (D2, D3, D4, D5, D6, Unrated).
- 백준 (Baekjoon) – Solutions for Baekjoon Online Judge, subdivided into Bronze, Silver, Gold.
- 프로그래머스 (Programmers) – Solutions for Programmers platform, subdivided by problem difficulty tiers (1, 2, 3).
- Under each difficulty folder are numbered problem directories. Each problem directory contains:
- A README.md (describing problem, input/output format).
- One or more solution source files (.py, .cpp, .java, etc.).
- There are no build or deployment scripts, no database, no external services.

##### README Insights
- The root README only displays a Solved.ac badge, indicating a high‐level status metric.
- Individual README files per problem likely include problem statements or brief notes, reinforcing that the core of the system is static content.

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph "Competitive-Programming Repository"
        Root_README["README.md"]:::file

        A_SWEA["SWEA"]:::swea
        B_BAekjoon["백준"]:::baekjoon
        C_Programmers["프로그래머스"]:::programmers

        subgraph "SWEA Modules"
            SWEA_D2["D2"]:::sweaDiff
            SWEA_D3["D3"]:::sweaDiff
            SWEA_D4["D4"]:::sweaDiff
            SWEA_D5["D5"]:::sweaDiff
            SWEA_D6["D6"]:::sweaDiff
            SWEA_Unrated["Unrated"]:::sweaDiff
        end

        subgraph "백준 Modules"
            BJ_Bronze["Bronze"]:::baekDiff
            BJ_Silver["Silver"]:::baekDiff
            BJ_Gold["Gold"]:::baekDiff
        end

        subgraph "프로그래머스 Modules"
            PR_Tier1["Tier 1"]:::progDiff
            PR_Tier2["Tier 2"]:::progDiff
            PR_Tier3["Tier 3"]:::progDiff
        end

        A_SWEA --> SWEA_D2
        A_SWEA --> SWEA_D3
        A_SWEA --> SWEA_D4
        A_SWEA --> SWEA_D5
        A_SWEA --> SWEA_D6
        A_SWEA --> SWEA_Unrated

        B_BAekjoon --> BJ_Bronze
        B_BAekjoon --> BJ_Silver
        B_BAekjoon --> BJ_Gold

        C_Programmers --> PR_Tier1
        C_Programmers --> PR_Tier2
        C_Programmers --> PR_Tier3

        %% Example SWEA problem
        SWEA_D2 --> SWEA_14510["14510 나무 높이"]:::folder
        subgraph SWEA_14510_Files
            S14510_READ["README.md"]:::file
            S14510_CPP["나무 높이.cpp"]:::file
        end
        SWEA_14510 --> S14510_READ
        SWEA_14510 --> S14510_CPP

        %% Example Baekjoon problem
        BJ_Gold --> BJ_10026["10026 적록색약"]:::folder
        subgraph BJ_10026_Files
            B10026_READ["README.md"]:::file
            B10026_PY["적록색약.py"]:::file
        end
        BJ_10026 --> B10026_READ
        BJ_10026 --> B10026_PY

        %% Example Programmers problem
        PR_Tier1 --> PR_12906["12906 같은 숫자는 싫어"]:::folder
        subgraph PR_12906_Files
            P12906_READ["README.md"]:::file
            P12906_JAVA["같은 숫자는 싫어.java"]:::file
        end
        PR_12906 --> P12906_READ
        PR_12906 --> P12906_JAVA

        %% Legend
        subgraph Legend
            L1["Folder"]:::folder
            L2["File"]:::file
            L3["SWEA Module"]:::swea
            L4["Baekjoon Module"]:::baekjoon
            L5["Programmers Module"]:::programmers
        end
    end

    click Root_README "https://github.com/dunblx05/boj/blob/main/README.md"
    click A_SWEA "https://github.com/dunblx05/boj/tree/main/SWEA/"
    click SWEA_D2 "https://github.com/dunblx05/boj/tree/main/SWEA/D2/"
    click SWEA_D3 "https://github.com/dunblx05/boj/tree/main/SWEA/D3/"
    click SWEA_D4 "https://github.com/dunblx05/boj/tree/main/SWEA/D4/"
    click SWEA_D5 "https://github.com/dunblx05/boj/tree/main/SWEA/D5/"
    click SWEA_D6 "https://github.com/dunblx05/boj/tree/main/SWEA/D6/"
    click SWEA_Unrated "https://github.com/dunblx05/boj/tree/main/SWEA/Unrated/"
    click B_BAekjoon "https://github.com/dunblx05/boj/tree/main/백준/"
    click BJ_Bronze "https://github.com/dunblx05/boj/tree/main/백준/Bronze/"
    click BJ_Silver "https://github.com/dunblx05/boj/tree/main/백준/Silver/"
    click BJ_Gold "https://github.com/dunblx05/boj/tree/main/백준/Gold/"
    click C_Programmers "https://github.com/dunblx05/boj/tree/main/프로그래머스/"
    click PR_Tier1 "https://github.com/dunblx05/boj/tree/main/프로그래머스/1/"
    click PR_Tier2 "https://github.com/dunblx05/boj/tree/main/프로그래머스/2/"
    click PR_Tier3 "https://github.com/dunblx05/boj/tree/main/프로그래머스/3/"
    click SWEA_14510 "https://github.com/dunblx05/boj/tree/main/SWEA/D2/14510. 나무 높이/"
    click S14510_READ "https://github.com/dunblx05/boj/blob/main/SWEA/D2/14510. 나무 높이/README.md"
    click S14510_CPP "https://github.com/dunblx05/boj/blob/main/SWEA/D2/14510. 나무 높이/나무 높이.cpp"
    click BJ_10026 "https://github.com/dunblx05/boj/tree/main/백준/Gold/10026. 적록색약/"
    click B10026_READ "https://github.com/dunblx05/boj/blob/main/백준/Gold/10026. 적록색약/README.md"
    click B10026_PY "https://github.com/dunblx05/boj/blob/main/백준/Gold/10026. 적록색약/적록색약.py"
    click PR_12906 "https://github.com/dunblx05/boj/tree/main/프로그래머스/1/12906. 같은 숫자는 싫어/"
    click P12906_READ "https://github.com/dunblx05/boj/blob/main/프로그래머스/1/12906. 같은 숫자는 싫어/README.md"
    click P12906_JAVA "https://github.com/dunblx05/boj/blob/main/프로그래머스/1/12906. 같은 숫자는 싫어/같은 숫자는 싫어.java"

    classDef swea fill:#cce5ff,stroke:#0366d6,color:#0366d6;
    classDef baekjoon fill:#d4edda,stroke:#28a745,color:#155724;
    classDef programmers fill:#fff3cd,stroke:#ff8c00,color:#856404;
    classDef sweaDiff fill:#e6f0ff,stroke:#0366d6,color:#0366d6;
    classDef baekDiff fill:#e7f5e6,stroke:#28a745,color:#155724;
    classDef progDiff fill:#fff7e6,stroke:#ff8c00,color:#856404;
    classDef folder fill:#f0f0f0,stroke:#333,color:#333,stroke-dasharray: 2 2;
    classDef file fill:#ffffff,stroke:#999,color:#555;
```
