# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1137186 | fryingduc | 건물 4 (JOI20_building4) | C++20 | 142 ms | 26016 KiB |
#include "bits/stdc++.h"
using namespace std;
#ifdef duc_debug
#include "bits/debug.h"
#else
#define debug(...)
#endif
const int maxn = 1e6 + 6;
int n, a[maxn][2];
pair<int, int> f[maxn][2];
pair<int, bool> trace[maxn][3][2];
void update(pair<int, int> &cur, pair<int, int> v, int delta) {
cur.first = min(cur.first, v.first + delta);
cur.second = max(cur.second, v.second + delta);
}
void solve() {
cin >> n;
n = n + n;
for(int j = 0; j < 2; ++j) {
for(int i = 1; i <= n; ++i) {
cin >> a[i][j];
}
}
for(int i = 1; i <= n; ++i) {
for(int j = 0; j < 2; ++j) {
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |