aboutsummaryrefslogtreecommitdiff
path: root/MirrorGrid
diff options
context:
space:
mode:
authoromagdy7 <omar.professional8777@gmail.com>2022-11-05 01:41:11 +0200
committeromagdy7 <omar.professional8777@gmail.com>2022-11-05 01:41:11 +0200
commit7f856c7ff080b8d455b9ed16c2e57dd862c3879d (patch)
treec2baf90f98c91567358003d6b97a4afed7fa9b42 /MirrorGrid
parentc52b36c6a37fdb1d1de146d3939cb42e2c691f44 (diff)
downloadcompetitive-programming-7f856c7ff080b8d455b9ed16c2e57dd862c3879d.tar.xz
competitive-programming-7f856c7ff080b8d455b9ed16c2e57dd862c3879d.zip
moved some file
Diffstat (limited to 'MirrorGrid')
-rwxr-xr-xMirrorGrid/mainbin30448 -> 0 bytes
-rw-r--r--MirrorGrid/main.cpp30
-rw-r--r--MirrorGrid/main_input0.txt25
-rw-r--r--MirrorGrid/main_output0.txt5
4 files changed, 0 insertions, 60 deletions
diff --git a/MirrorGrid/main b/MirrorGrid/main
deleted file mode 100755
index e41e986..0000000
--- a/MirrorGrid/main
+++ /dev/null
Binary files differ
diff --git a/MirrorGrid/main.cpp b/MirrorGrid/main.cpp
deleted file mode 100644
index e72b5a4..0000000
--- a/MirrorGrid/main.cpp
+++ /dev/null
@@ -1,30 +0,0 @@
-#include <bits/stdc++.h>
-
-using namespace std;
-
-int main() {
- ios_base::sync_with_stdio(false);
- cin.tie(NULL);
- int tt;
- cin >> tt;
- while (tt--) {
- int n;
- cin >> n;
- vector<string> arr(n);
- for (auto &x : arr) {
- cin >> x;
- }
- int count = 0;
- for (int i = 0; i < n / 2; i++) {
- for (int j = 0; j < (n + 1) / 2; j++) {
- int ch1 = arr[i][j] - '0';
- int ch2 = arr[n - 1 - j][i] - '0';
- int ch3 = arr[n - i - 1][n - 1 - j] - '0';
- int ch4 = arr[j][n - 1 -i] - '0';
- int sum = ch1 + ch2 + ch3 + ch4;
- count += min(4 - sum, sum);
- }
- }
- cout << count << endl;
- }
-}
diff --git a/MirrorGrid/main_input0.txt b/MirrorGrid/main_input0.txt
deleted file mode 100644
index 019af89..0000000
--- a/MirrorGrid/main_input0.txt
+++ /dev/null
@@ -1,25 +0,0 @@
-5
-3
-010
-110
-010
-1
-0
-5
-11100
-11011
-01011
-10011
-11000
-5
-01000
-10101
-01010
-00010
-01001
-5
-11001
-00000
-11111
-10110
-01111
diff --git a/MirrorGrid/main_output0.txt b/MirrorGrid/main_output0.txt
deleted file mode 100644
index 9944ffa..0000000
--- a/MirrorGrid/main_output0.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-1
-0
-9
-7
-6