# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
211508 | JustInCase | Building 4 (JOI20_building4) | C++17 | 312 ms | 26092 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
const int32_t MAX_N = 1e6;
const int32_t INF = 2e9;
int32_t dp[MAX_N + 5][2][2];
int main() {
std::ios_base::sync_with_stdio(false);
std::cin.tie(nullptr);
int32_t n;
std::cin >> n;
n *= 2;
std::vector< int32_t > a(n);
for(int32_t i = 0; i < n; i++) {
std::cin >> a[i];
}
std::vector< int32_t > b(n);
for(int32_t i = 0; i < n; i++) {
std::cin >> b[i];
}
dp[0][0][0] = 1;
dp[0][0][1] = 1;
dp[0][1][0] = 0;
dp[0][1][1] = 0;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |