From c827efeeef0cdc63c5366e9d945fa53c09988491 Mon Sep 17 00:00:00 2001 From: omagdy7 Date: Sun, 9 Apr 2023 03:09:19 +0200 Subject: Solve day7 in rust --- 2022/Cpp/Day8/Makefile | 0 2022/Cpp/Day8/input.prod | 0 2022/Cpp/Day8/input.test | 0 2022/Cpp/Day8/main.cpp | 2 -- 2022/Cpp/Day8/puzzle.md | 0 5 files changed, 2 deletions(-) mode change 100644 => 100755 2022/Cpp/Day8/Makefile mode change 100644 => 100755 2022/Cpp/Day8/input.prod mode change 100644 => 100755 2022/Cpp/Day8/input.test mode change 100644 => 100755 2022/Cpp/Day8/main.cpp mode change 100644 => 100755 2022/Cpp/Day8/puzzle.md (limited to '2022/Cpp/Day8') diff --git a/2022/Cpp/Day8/Makefile b/2022/Cpp/Day8/Makefile old mode 100644 new mode 100755 diff --git a/2022/Cpp/Day8/input.prod b/2022/Cpp/Day8/input.prod old mode 100644 new mode 100755 diff --git a/2022/Cpp/Day8/input.test b/2022/Cpp/Day8/input.test old mode 100644 new mode 100755 diff --git a/2022/Cpp/Day8/main.cpp b/2022/Cpp/Day8/main.cpp old mode 100644 new mode 100755 index 4a5b885..1fd440a --- a/2022/Cpp/Day8/main.cpp +++ b/2022/Cpp/Day8/main.cpp @@ -100,8 +100,6 @@ array calcScenicScore(P2 p, vector> &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 old mode 100644 new mode 100755 -- cgit v1.2.3