# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
211508 | JustInCase | 건물 4 (JOI20_building4) | C++17 | 312 ms | 26092 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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... |