aboutsummaryrefslogtreecommitdiff
path: root/contests/Round#809
diff options
context:
space:
mode:
Diffstat (limited to 'contests/Round#809')
-rwxr-xr-xcontests/Round#809/A/B/C/D/E/F/main.cpp13
-rwxr-xr-xcontests/Round#809/A/B/C/D/E/main.cpp13
-rwxr-xr-xcontests/Round#809/A/B/C/D/main.cpp13
-rwxr-xr-xcontests/Round#809/A/B/C/main.cpp13
-rwxr-xr-xcontests/Round#809/A/B/mainbin31808 -> 0 bytes
-rwxr-xr-xcontests/Round#809/A/B/main.cpp58
-rwxr-xr-xcontests/Round#809/A/B/main_input0.txt13
-rwxr-xr-xcontests/Round#809/A/B/main_input1.txt3
-rwxr-xr-xcontests/Round#809/A/B/main_input2.txt3
-rwxr-xr-xcontests/Round#809/A/B/main_input3.txt3
-rwxr-xr-xcontests/Round#809/A/B/main_output0.txt6
-rwxr-xr-xcontests/Round#809/A/B/main_output1.txt1
-rwxr-xr-xcontests/Round#809/A/B/main_output2.txt1
-rwxr-xr-xcontests/Round#809/A/B/main_output3.txt1
-rwxr-xr-xcontests/Round#809/A/mainbin42488 -> 0 bytes
-rwxr-xr-xcontests/Round#809/A/main.cpp35
-rwxr-xr-xcontests/Round#809/A/main_input0.txt13
-rwxr-xr-xcontests/Round#809/A/main_output0.txt6
18 files changed, 0 insertions, 195 deletions
diff --git a/contests/Round#809/A/B/C/D/E/F/main.cpp b/contests/Round#809/A/B/C/D/E/F/main.cpp
deleted file mode 100755
index 9549f1d..0000000
--- a/contests/Round#809/A/B/C/D/E/F/main.cpp
+++ /dev/null
@@ -1,13 +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--){
-
- }
-}
diff --git a/contests/Round#809/A/B/C/D/E/main.cpp b/contests/Round#809/A/B/C/D/E/main.cpp
deleted file mode 100755
index 9549f1d..0000000
--- a/contests/Round#809/A/B/C/D/E/main.cpp
+++ /dev/null
@@ -1,13 +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--){
-
- }
-}
diff --git a/contests/Round#809/A/B/C/D/main.cpp b/contests/Round#809/A/B/C/D/main.cpp
deleted file mode 100755
index 9549f1d..0000000
--- a/contests/Round#809/A/B/C/D/main.cpp
+++ /dev/null
@@ -1,13 +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--){
-
- }
-}
diff --git a/contests/Round#809/A/B/C/main.cpp b/contests/Round#809/A/B/C/main.cpp
deleted file mode 100755
index 9549f1d..0000000
--- a/contests/Round#809/A/B/C/main.cpp
+++ /dev/null
@@ -1,13 +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--){
-
- }
-}
diff --git a/contests/Round#809/A/B/main b/contests/Round#809/A/B/main
deleted file mode 100755
index 12f7c31..0000000
--- a/contests/Round#809/A/B/main
+++ /dev/null
Binary files differ
diff --git a/contests/Round#809/A/B/main.cpp b/contests/Round#809/A/B/main.cpp
deleted file mode 100755
index 90c55c2..0000000
--- a/contests/Round#809/A/B/main.cpp
+++ /dev/null
@@ -1,58 +0,0 @@
-#include <bits/stdc++.h>
-
-using namespace std;
-
-bool isCool(vector<int> &a, int i) {
- if (i == 0) {
- return false;
- }
- if (a[i - 1] < a[i] && a[i + 1] < a[i]) {
- return true;
- }
- return false;
-}
-
-int main() {
- ios_base::sync_with_stdio(false);
- cin.tie(NULL);
- int tt;
- cin >> tt;
- while (tt--) {
- int n;
- cin >> n;
- vector<int> a(n);
- for (int &x : a)
- cin >> x;
- long long ans = 0;
- long long mx = 0;
- int max_cool = (n - 1) / 2;
- int cnt = 0;
- if(n > 3) {
- for (int i = 1; i < n - 1; i++) {
- if(isCool(a,i)) {
- cnt++;
- }
- if (!isCool(a, i) && i % 2 == 0) {
- ans += abs(a[i] - max(a[i - 1], a[i + 1])) + 1;
- } else if(!isCool(a, i) && i % 2 != 0) {
- mx += abs(a[i] - max(a[i - 1], a[i + 1])) + 1;
- }
- }
- long long mx2 = 0;
- for (int i = 1; i < n - 1; i += 3) {
- if (!isCool(a, i)) {
- mx2 += abs(a[i] - max(a[i - 1], a[i + 1])) + 1;
- }
- }
- cerr << mx << " " << ans << " " << mx2 << endl;
- if(cnt < max_cool) {
- // cout << max(mx2, max(ans, mx)) << endl;
- } else {
- cout << min(mx2, min(ans, mx)) << endl;
- }
-
- } else {
- cout << abs(a[1] - max(a[0], a[2])) + 1 << endl;
- }
- }
-}
diff --git a/contests/Round#809/A/B/main_input0.txt b/contests/Round#809/A/B/main_input0.txt
deleted file mode 100755
index 3781f01..0000000
--- a/contests/Round#809/A/B/main_input0.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-6
-3
-2 1 2
-5
-1 2 1 4 3
-6
-3 1 4 5 5 2
-8
-4 2 1 3 5 3 6 1
-6
-1 10 1 1 10 1
-8
-1 10 11 1 10 11 10 1
diff --git a/contests/Round#809/A/B/main_input1.txt b/contests/Round#809/A/B/main_input1.txt
deleted file mode 100755
index 07c8f0a..0000000
--- a/contests/Round#809/A/B/main_input1.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-1
-4
-1 2 2 1 \ No newline at end of file
diff --git a/contests/Round#809/A/B/main_input2.txt b/contests/Round#809/A/B/main_input2.txt
deleted file mode 100755
index b5a46e0..0000000
--- a/contests/Round#809/A/B/main_input2.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-1
-5
-1 1 1 4 3 \ No newline at end of file
diff --git a/contests/Round#809/A/B/main_input3.txt b/contests/Round#809/A/B/main_input3.txt
deleted file mode 100755
index fb1fbc0..0000000
--- a/contests/Round#809/A/B/main_input3.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-1
-7
-1000000000 1 1000000000 1 1000000000 1 1000000000 \ No newline at end of file
diff --git a/contests/Round#809/A/B/main_output0.txt b/contests/Round#809/A/B/main_output0.txt
deleted file mode 100755
index 6a9dd24..0000000
--- a/contests/Round#809/A/B/main_output0.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-2
-0
-3
-3
-0
-4
diff --git a/contests/Round#809/A/B/main_output1.txt b/contests/Round#809/A/B/main_output1.txt
deleted file mode 100755
index 56a6051..0000000
--- a/contests/Round#809/A/B/main_output1.txt
+++ /dev/null
@@ -1 +0,0 @@
-1 \ No newline at end of file
diff --git a/contests/Round#809/A/B/main_output2.txt b/contests/Round#809/A/B/main_output2.txt
deleted file mode 100755
index 56a6051..0000000
--- a/contests/Round#809/A/B/main_output2.txt
+++ /dev/null
@@ -1 +0,0 @@
-1 \ No newline at end of file
diff --git a/contests/Round#809/A/B/main_output3.txt b/contests/Round#809/A/B/main_output3.txt
deleted file mode 100755
index c227083..0000000
--- a/contests/Round#809/A/B/main_output3.txt
+++ /dev/null
@@ -1 +0,0 @@
-0 \ No newline at end of file
diff --git a/contests/Round#809/A/main b/contests/Round#809/A/main
deleted file mode 100755
index 8ee5ead..0000000
--- a/contests/Round#809/A/main
+++ /dev/null
Binary files differ
diff --git a/contests/Round#809/A/main.cpp b/contests/Round#809/A/main.cpp
deleted file mode 100755
index 9f5e962..0000000
--- a/contests/Round#809/A/main.cpp
+++ /dev/null
@@ -1,35 +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, m;
- cin >> n >> m;
- vector<char> v(m, 'B');
- vector<int> a(n);
- set<int> vis;
- for(int &x : a) cin >> x;
- for(int i = 0; i < n; i++) {
- int f = a[i] - 1;
- int l = m - a[i];
- if(f <= l && v[f] != 'A') {
- v[f] = 'A';
- } else if(f <= l && v[f] == 'A') {
- v[l] = 'A';
- } else if(l <= f && v[l] != 'A') {
- v[l] = 'A';
- } else if(l <= f && v[l] == 'A') {
- v[f] = 'A';
- }
- }
- for(auto ch : v) {
- cout << ch;
- }
- cout << endl;
- }
-}
diff --git a/contests/Round#809/A/main_input0.txt b/contests/Round#809/A/main_input0.txt
deleted file mode 100755
index b09d594..0000000
--- a/contests/Round#809/A/main_input0.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-6
-4 5
-1 1 3 1
-1 5
-2
-4 1
-1 1 1 1
-2 4
-1 3
-2 7
-7 5
-4 5
-5 5 3 5
diff --git a/contests/Round#809/A/main_output0.txt b/contests/Round#809/A/main_output0.txt
deleted file mode 100755
index ac6b315..0000000
--- a/contests/Round#809/A/main_output0.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-ABABA
-BABBB
-A
-AABB
-ABABBBB
-ABABA