# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
396949 | timmyfeng | The Kingdom of JOIOI (JOI17_joioi) | C++17 | 731 ms | 44144 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
const int N = 2001;
int prefix[N], suffix[N], diff[N][N], a[N][N];
int main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
int n, m;
cin >> n >> m;
int maxi = INT_MIN, mini = INT_MAX;
for (int i = 0; i < n; ++i) {
for (int j = 0; j < m; ++j) {
cin >> a[i][j];
maxi = max(maxi, a[i][j]);
mini = min(mini, a[i][j]);
}
}
fill(diff[0], diff[0] + m + 1, INT_MIN);
int ans = INT_MAX;
for (int k = 0; k < 2; ++k) {
for (int i = 0; i < n; ++i) {
reverse(a[i], a[i] + m);
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |