# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
205595 | Kastanda | The Kingdom of JOIOI (JOI17_joioi) | C++11 | 4006 ms | 39480 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
// In The Name Of The Queen
#include<bits/stdc++.h>
using namespace std;
const int N = 2019, INF = 1e9 + 1;
int n, m, A[N][N], P[N], S[N], B[N];
pair < int , int > At[2];
int Val[2];
inline int Solve(int md)
{
for (int w = 0; w <= 1; w ++)
{
P[0] = 0; S[m + 1] = INF;
for (int i = 1; i <= n; i ++)
{
for (int j = 1; j <= m; j ++)
P[j] = max(P[j - 1], A[i][j]);
for (int j = m; j; j --)
S[j] = min(S[j + 1], A[i][j]);
B[i] = m + 1;
int l = B[i - 1], r = m;
if (At[0].first == i)
l = max(l, At[0].second);
if (At[1].first == i)
r = min(r, At[1].second - 1);
for (int j = l; j <= r; j ++)
{
if (P[j] - Val[0] > md)
break;
if (Val[1] - S[j + 1] > md)
continue;
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |