aboutsummaryrefslogtreecommitdiff
path: root/codeforces/MakeAEqualToB
diff options
context:
space:
mode:
Diffstat (limited to 'codeforces/MakeAEqualToB')
-rwxr-xr-xcodeforces/MakeAEqualToB/mainbin0 -> 27432 bytes
-rw-r--r--codeforces/MakeAEqualToB/main.cpp67
-rw-r--r--codeforces/MakeAEqualToB/main_input0.txt16
-rw-r--r--codeforces/MakeAEqualToB/main_output0.txt5
4 files changed, 88 insertions, 0 deletions
diff --git a/codeforces/MakeAEqualToB/main b/codeforces/MakeAEqualToB/main
new file mode 100755
index 0000000..0cedbdd
--- /dev/null
+++ b/codeforces/MakeAEqualToB/main
Binary files differ
diff --git a/codeforces/MakeAEqualToB/main.cpp b/codeforces/MakeAEqualToB/main.cpp
new file mode 100644
index 0000000..b09768f
--- /dev/null
+++ b/codeforces/MakeAEqualToB/main.cpp
@@ -0,0 +1,67 @@
+#include<bits/stdc++.h>
+
+using namespace std;
+
+using ll = long long;
+using pi = pair<int, int>;
+using vpi = vector<pi>;
+using vi = vector<int>;
+using vll = vector<long long>;
+using mpii = map<int, int>;
+using mpll = map<ll, ll>;
+using db = long double;
+
+#define push_back pb
+#define all(x) (x).begin(), (x).end()
+#define rall(x) (x).rbegin(), (x).rend()
+#define lb lower_bound
+#define ub upper_bound
+
+const int MOD = (int)1e9 + 7;
+const db PI = acos((db)-1);
+const int dx[4]{1, 0, -1, 0};
+const int dy[4]{0, 1, 0, -1};
+
+bool isSame(vi v1, vi v2) {
+ for (int i = 0; i < v1.size(); i++) {
+ if (v1[i] != v2[i]) {
+ return false;
+ }
+ }
+ return true;
+}
+
+void solve() {
+ int n;
+ cin >> n;
+ vi a(n);
+ vi b(n);
+ for (auto &x : a) cin >> x;
+ for (auto &x : b) cin >> x;
+ int za = 0;
+ int zb = 0;
+ for (int i = 0; i < n; i++) {
+ za += a[i] == 0;
+ zb += b[i] == 0;
+ }
+ int ans = 0;
+}
+
+int main () {
+ ios_base::sync_with_stdio(false);
+ cin.tie(NULL);
+ int tt;
+ cin >> tt;
+ while(tt--) {
+ solve();
+ }
+}
+
+/* stuff you should look for:
+ ---------------------------
+ * special cases (n=1?)
+ * int overflow, array bounds
+ * do smth instead of nothing and stay organized
+ * WRITE STUFF DOWN
+ * DON'T GET STUCK ON ONE APPROACH
+ */
diff --git a/codeforces/MakeAEqualToB/main_input0.txt b/codeforces/MakeAEqualToB/main_input0.txt
new file mode 100644
index 0000000..8f5ba93
--- /dev/null
+++ b/codeforces/MakeAEqualToB/main_input0.txt
@@ -0,0 +1,16 @@
+5
+3
+1 0 1
+0 0 1
+4
+1 1 0 0
+0 1 1 1
+2
+1 1
+1 1
+4
+1 0 0 1
+0 1 1 0
+1
+0
+1
diff --git a/codeforces/MakeAEqualToB/main_output0.txt b/codeforces/MakeAEqualToB/main_output0.txt
new file mode 100644
index 0000000..cdc0ea2
--- /dev/null
+++ b/codeforces/MakeAEqualToB/main_output0.txt
@@ -0,0 +1,5 @@
+1
+2
+0
+1
+1