# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
921037 | ttamx | The Kingdom of JOIOI (JOI17_joioi) | C++14 | 360 ms | 117864 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
using namespace std;
const int N=2005;
const int INF=1e9;
int n,m;
int a[N][N],lmx[N][N],rmx[N][N],lmn[N][N],rmn[N][N];
int mn=INF;
int bsearch(int i,int v){
int l=1,r=m;
while(l<r){
int m=(l+r)/2;
if(rmx[i][m]<=v)r=m;
else l=m+1;
}
return l;
}
bool check1(int d){
stack<pair<int,int>> s;
for(int i=1;i<=n;i++){
int p=upper_bound(lmx[i]+1,lmx[i]+m,mn+d)-lmx[i]-1;
while(!s.empty()&&s.top().second>p)s.pop();
s.emplace(i,p);
}
int lo=INF,hi=0,p;
for(int i=n;i>=1;i--){
컴파일 시 표준 에러 (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... |