diff options
| author | omagdy7 <omar.professional8777@gmail.com> | 2023-04-09 03:09:19 +0200 |
|---|---|---|
| committer | omagdy7 <omar.professional8777@gmail.com> | 2023-04-09 03:09:19 +0200 |
| commit | c827efeeef0cdc63c5366e9d945fa53c09988491 (patch) | |
| tree | e33361fa13742f5fd295e1e8525f388fca7fdda4 /2022/Cpp/Day8 | |
| parent | d5e8f8cb89c24e02898eed760ea22f0522e59f44 (diff) | |
| download | aoc-c827efeeef0cdc63c5366e9d945fa53c09988491.tar.xz aoc-c827efeeef0cdc63c5366e9d945fa53c09988491.zip | |
Solve day7 in rust
Diffstat (limited to '2022/Cpp/Day8')
| -rwxr-xr-x[-rw-r--r--] | 2022/Cpp/Day8/Makefile | 0 | ||||
| -rwxr-xr-x[-rw-r--r--] | 2022/Cpp/Day8/input.prod | 0 | ||||
| -rwxr-xr-x[-rw-r--r--] | 2022/Cpp/Day8/input.test | 0 | ||||
| -rwxr-xr-x[-rw-r--r--] | 2022/Cpp/Day8/main.cpp | 2 | ||||
| -rwxr-xr-x[-rw-r--r--] | 2022/Cpp/Day8/puzzle.md | 0 |
5 files changed, 0 insertions, 2 deletions
diff --git a/2022/Cpp/Day8/Makefile b/2022/Cpp/Day8/Makefile index 2faed25..2faed25 100644..100755 --- a/2022/Cpp/Day8/Makefile +++ b/2022/Cpp/Day8/Makefile diff --git a/2022/Cpp/Day8/input.prod b/2022/Cpp/Day8/input.prod index 28e5772..28e5772 100644..100755 --- a/2022/Cpp/Day8/input.prod +++ b/2022/Cpp/Day8/input.prod diff --git a/2022/Cpp/Day8/input.test b/2022/Cpp/Day8/input.test index 16d6fbd..16d6fbd 100644..100755 --- a/2022/Cpp/Day8/input.test +++ b/2022/Cpp/Day8/input.test diff --git a/2022/Cpp/Day8/main.cpp b/2022/Cpp/Day8/main.cpp index 4a5b885..1fd440a 100644..100755 --- a/2022/Cpp/Day8/main.cpp +++ b/2022/Cpp/Day8/main.cpp @@ -100,8 +100,6 @@ array<int ,4> calcScenicScore(P2 p, vector<vector<int>> &trees) { // right for (int i = p.y + 1; i < c; i++) { if (trees[p.x][i] >= trees[p.x][p.y] || i == r - 1) { - // print("in right: ",trees[p.x][i], trees[p.x][p.y]); - // print("i: ", i, "p.y: ", p.y); res[2] = abs(p.y - i); break; } diff --git a/2022/Cpp/Day8/puzzle.md b/2022/Cpp/Day8/puzzle.md index 45a66ba..45a66ba 100644..100755 --- a/2022/Cpp/Day8/puzzle.md +++ b/2022/Cpp/Day8/puzzle.md |
