# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
211558 | mcdx9524 | 건물 4 (JOI20_building4) | C++14 | 337 ms | 26152 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>
using namespace std;
typedef long long ll;
mt19937 rnd(chrono::high_resolution_clock::now().time_since_epoch().count());
const int N = 5e5 + 7;
const int inf = 1e9 + 7;
pair <int, int> dp[2 * N][2];
int a[2 * N][2];
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int n;
cin >> n;
n *= 2;
for (int i = 0; i < n; i++) {
cin >> a[i][0];
}
for (int i = 0; i < n; i++) {
cin >> a[i][1];
}
for (int i = 0; i < n; i++) {
for (int j = 0; j < 2; j++) {
dp[i][j] = {inf, -1};
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |