# ziad-v7med/icpc-sheets-solutions architecture

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

- Interactive diagram: https://gitdiagram.com/ziad-v7med/icpc-sheets-solutions
- Repository: https://github.com/ziad-v7med/icpc-sheets-solutions

## Overview

This is a collection of standalone C++ solutions for ICPC Beni Suef training sheets, not a shared application. A typical user selects a problem solution, supplies its expected input on standard input, and receives that solution’s answer on standard output. The tree and README show Level 0 fundamentals and Level 1 algorithm sheets; sampled programs confirm independent entry points rather than shared runtime services. Major documented capabilities such as contests and other topic areas are not represented in the supplied tree, so the graph is limited to the available sheets.

Main entry points: [`Level 0/Sheets/1- Data Types & Operators`](https://github.com/ziad-v7med/icpc-sheets-solutions/tree/main/Level%200/Sheets/1-%20Data%20Types%20%26%20Operators) (Types and Operators), [`Level 0/Sheets/2- Conditions`](https://github.com/ziad-v7med/icpc-sheets-solutions/tree/main/Level%200/Sheets/2-%20Conditions) (Conditions), [`Level 0/Sheets/3- Loops & Time complexity`](https://github.com/ziad-v7med/icpc-sheets-solutions/tree/main/Level%200/Sheets/3-%20Loops%20%26%20Time%20complexity) (Loops and Patterns), [`Level 1/Sheets/1- Prefix Sum - Partial Sum - Frequency Array/G. range sum 2d.cpp`](https://github.com/ziad-v7med/icpc-sheets-solutions/blob/main/Level%201/Sheets/1-%20Prefix%20Sum%20-%20Partial%20Sum%20-%20Frequency%20Array/G.%20range%20sum%202d.cpp) (Range Sum Queries)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_level0["Level 0 Sheets"]
  node_basics["Types and Operators"]
  node_conditions["Conditions"]
  node_loops["Loops and Patterns"]
end

subgraph group_level1prefix["Level 1 Prefix Sum"]
  node_prefix["Prefix and Frequency"]
  node_prefixqueries["Range Sum Queries"]
  node_gridcoverage["Grid Coverage<br/>[N. Sub-Girds.cpp]"]
  node_selection["Selection and Sorting"]
end

subgraph group_level1number["Level 1 Number Theory"]
  node_numbertheory["Number Theory"]
  node_factorization["Factor Triples"]
  node_divisibility["Divisibility Operations"]
  node_primegrid["Prime Matrix"]
end

node_user(("Learner"))
node_stdin["Standard Input"]
node_stdout["Standard Output"]

node_user -->|"selects solution"| node_basics
node_user -->|"selects solution"| node_conditions
node_user -->|"selects solution"| node_loops
node_user -->|"selects solution"| node_prefix
node_user -->|"selects solution"| node_numbertheory
node_stdin -->|"provides input"| node_basics
node_basics -->|"prints result"| node_stdout
node_stdin -->|"provides input"| node_conditions
node_conditions -->|"prints result"| node_stdout
node_stdin -->|"provides input"| node_loops
node_loops -->|"prints pattern"| node_stdout
node_stdin -->|"provides input"| node_prefixqueries
node_prefixqueries -->|"prints sums"| node_stdout
node_stdin -->|"provides input"| node_gridcoverage
node_gridcoverage -->|"prints uncovered count"| node_stdout
node_stdin -->|"provides input"| node_selection
node_selection -->|"prints selection"| node_stdout
node_stdin -->|"provides input"| node_factorization
node_factorization -->|"prints factors"| node_stdout
node_stdin -->|"provides input"| node_divisibility
node_divisibility -->|"prints operations"| node_stdout
node_stdin -->|"provides input"| node_primegrid
node_primegrid -->|"prints minimum"| node_stdout

click node_basics "https://github.com/ziad-v7med/icpc-sheets-solutions/tree/main/Level%200/Sheets/1-%20Data%20Types%20%26%20Operators"
click node_conditions "https://github.com/ziad-v7med/icpc-sheets-solutions/tree/main/Level%200/Sheets/2-%20Conditions"
click node_loops "https://github.com/ziad-v7med/icpc-sheets-solutions/tree/main/Level%200/Sheets/3-%20Loops%20%26%20Time%20complexity"
click node_prefix "https://github.com/ziad-v7med/icpc-sheets-solutions/tree/main/Level%201/Sheets/1-%20Prefix%20Sum%20-%20Partial%20Sum%20-%20Frequency%20Array"
click node_prefixqueries "https://github.com/ziad-v7med/icpc-sheets-solutions/blob/main/Level%201/Sheets/1-%20Prefix%20Sum%20-%20Partial%20Sum%20-%20Frequency%20Array/G.%20range%20sum%202d.cpp"
click node_gridcoverage "https://github.com/ziad-v7med/icpc-sheets-solutions/blob/main/Level%201/Sheets/1-%20Prefix%20Sum%20-%20Partial%20Sum%20-%20Frequency%20Array/N.%20Sub-Girds.cpp"
click node_selection "https://github.com/ziad-v7med/icpc-sheets-solutions/blob/main/Level%201/Sheets/1-%20Prefix%20Sum%20-%20Partial%20Sum%20-%20Frequency%20Array/P.%20Polycarp's%20Practice.cpp"
click node_numbertheory "https://github.com/ziad-v7med/icpc-sheets-solutions/tree/main/Level%201/Sheets/2-%20Number%20Theory"
click node_factorization "https://github.com/ziad-v7med/icpc-sheets-solutions/blob/main/Level%201/Sheets/2-%20Number%20Theory/N%20-%20Product%20of%20Three%20Numbers.cpp"
click node_divisibility "https://github.com/ziad-v7med/icpc-sheets-solutions/blob/main/Level%201/Sheets/2-%20Number%20Theory/L%20-%20Divisibility%20by%202%5En.cpp"
click node_primegrid "https://github.com/ziad-v7med/icpc-sheets-solutions/blob/main/Level%201/Sheets/2-%20Number%20Theory/M%20-%20Prime%20Matrix1.cpp"

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_basics,node_conditions,node_loops toneBlue
class node_prefix,node_prefixqueries,node_gridcoverage,node_selection toneAmber
class node_numbertheory,node_factorization,node_divisibility,node_primegrid toneMint
class node_user,node_stdin,node_stdout toneIndigo
```

## Components

### Level 0 Sheets

- [Types and Operators](https://github.com/ziad-v7med/icpc-sheets-solutions/tree/main/Level%200/Sheets/1-%20Data%20Types%20%26%20Operators): `Level 0/Sheets/1- Data Types & Operators`
- [Conditions](https://github.com/ziad-v7med/icpc-sheets-solutions/tree/main/Level%200/Sheets/2-%20Conditions): `Level 0/Sheets/2- Conditions`
- [Loops and Patterns](https://github.com/ziad-v7med/icpc-sheets-solutions/tree/main/Level%200/Sheets/3-%20Loops%20%26%20Time%20complexity): `Level 0/Sheets/3- Loops & Time complexity`

### Level 1 Prefix Sum

- [Prefix and Frequency](https://github.com/ziad-v7med/icpc-sheets-solutions/tree/main/Level%201/Sheets/1-%20Prefix%20Sum%20-%20Partial%20Sum%20-%20Frequency%20Array): `Level 1/Sheets/1- Prefix Sum - Partial Sum - Frequency Array`
- [Range Sum Queries](https://github.com/ziad-v7med/icpc-sheets-solutions/blob/main/Level%201/Sheets/1-%20Prefix%20Sum%20-%20Partial%20Sum%20-%20Frequency%20Array/G.%20range%20sum%202d.cpp): `Level 1/Sheets/1- Prefix Sum - Partial Sum - Frequency Array/G. range sum 2d.cpp`
- [Grid Coverage](https://github.com/ziad-v7med/icpc-sheets-solutions/blob/main/Level%201/Sheets/1-%20Prefix%20Sum%20-%20Partial%20Sum%20-%20Frequency%20Array/N.%20Sub-Girds.cpp): `Level 1/Sheets/1- Prefix Sum - Partial Sum - Frequency Array/N. Sub-Girds.cpp`
- [Selection and Sorting](https://github.com/ziad-v7med/icpc-sheets-solutions/blob/main/Level%201/Sheets/1-%20Prefix%20Sum%20-%20Partial%20Sum%20-%20Frequency%20Array/P.%20Polycarp's%20Practice.cpp): `Level 1/Sheets/1- Prefix Sum - Partial Sum - Frequency Array/P. Polycarp's Practice.cpp`

### Level 1 Number Theory

- [Number Theory](https://github.com/ziad-v7med/icpc-sheets-solutions/tree/main/Level%201/Sheets/2-%20Number%20Theory): `Level 1/Sheets/2- Number Theory`
- [Factor Triples](https://github.com/ziad-v7med/icpc-sheets-solutions/blob/main/Level%201/Sheets/2-%20Number%20Theory/N%20-%20Product%20of%20Three%20Numbers.cpp): `Level 1/Sheets/2- Number Theory/N - Product of Three Numbers.cpp`
- [Divisibility Operations](https://github.com/ziad-v7med/icpc-sheets-solutions/blob/main/Level%201/Sheets/2-%20Number%20Theory/L%20-%20Divisibility%20by%202%5En.cpp): `Level 1/Sheets/2- Number Theory/L - Divisibility by 2^n.cpp`
- [Prime Matrix](https://github.com/ziad-v7med/icpc-sheets-solutions/blob/main/Level%201/Sheets/2-%20Number%20Theory/M%20-%20Prime%20Matrix1.cpp): `Level 1/Sheets/2- Number Theory/M - Prime Matrix1.cpp`

### Other components

- **Learner**
- **Standard Input**
- **Standard Output**

## Connections

- Learner → Types and Operators: selects solution
- Learner → Conditions: selects solution
- Learner → Loops and Patterns: selects solution
- Learner → Prefix and Frequency: selects solution
- Learner → Number Theory: selects solution
- Standard Input → Types and Operators: provides input (evidence: `Level 0/Sheets/1- Data Types & Operators/F. Calculator.cpp`)
- Types and Operators → Standard Output: prints result (evidence: `Level 0/Sheets/1- Data Types & Operators/F. Calculator.cpp`)
- Standard Input → Conditions: provides input (evidence: `Level 0/Sheets/2- Conditions/Problem-F.cpp`)
- Conditions → Standard Output: prints result (evidence: `Level 0/Sheets/2- Conditions/Problem-F.cpp`)
- Standard Input → Loops and Patterns: provides input (evidence: `Level 0/Sheets/3- Loops & Time complexity/O. Fox And Snake.cpp`)
- Loops and Patterns → Standard Output: prints pattern (evidence: `Level 0/Sheets/3- Loops & Time complexity/O. Fox And Snake.cpp`)
- Standard Input → Range Sum Queries: provides input (evidence: `Level 1/Sheets/1- Prefix Sum - Partial Sum - Frequency Array/G. range sum 2d.cpp`)
- Range Sum Queries → Standard Output: prints sums (evidence: `Level 1/Sheets/1- Prefix Sum - Partial Sum - Frequency Array/G. range sum 2d.cpp`)
- Standard Input → Grid Coverage: provides input (evidence: `Level 1/Sheets/1- Prefix Sum - Partial Sum - Frequency Array/N. Sub-Girds.cpp`)
- Grid Coverage → Standard Output: prints uncovered count (evidence: `Level 1/Sheets/1- Prefix Sum - Partial Sum - Frequency Array/N. Sub-Girds.cpp`)
- Standard Input → Selection and Sorting: provides input (evidence: `Level 1/Sheets/1- Prefix Sum - Partial Sum - Frequency Array/P. Polycarp's Practice.cpp`)
- Selection and Sorting → Standard Output: prints selection (evidence: `Level 1/Sheets/1- Prefix Sum - Partial Sum - Frequency Array/P. Polycarp's Practice.cpp`)
- Standard Input → Factor Triples: provides input (evidence: `Level 1/Sheets/2- Number Theory/N - Product of Three Numbers.cpp`)
- Factor Triples → Standard Output: prints factors (evidence: `Level 1/Sheets/2- Number Theory/N - Product of Three Numbers.cpp`)
- Standard Input → Divisibility Operations: provides input (evidence: `Level 1/Sheets/2- Number Theory/L - Divisibility by 2^n.cpp`)
- Divisibility Operations → Standard Output: prints operations (evidence: `Level 1/Sheets/2- Number Theory/L - Divisibility by 2^n.cpp`)
- Standard Input → Prime Matrix: provides input (evidence: `Level 1/Sheets/2- Number Theory/M - Prime Matrix1.cpp`)
- Prime Matrix → Standard Output: prints minimum (evidence: `Level 1/Sheets/2- Number Theory/M - Prime Matrix1.cpp`)
