# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1025210 | giorgi_pkhaladze | 구경하기 (JOI13_watching) | C++14 | 72 ms | 44012 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define int long long
#define pii pair<int,int>
#define pll pair<ll,ll>
#define pb push_back
#define ff first
#define ss second
using namespace std;
int n,m,k,i,j,a[30001],b[30001],x,y,l,r,d[3001][3001],t[30001];
bool check(int o){
for(int k=0; k<=n; ++k){
a[k]=lower_bound(t+k+1,t+n+1,t[k+1]+o)-t-1;
b[k]=lower_bound(t+k+1,t+n+1,t[k+1]+(o<<1))-t-1;
}
for(int i=0; i<=x; i++){
for(int j=0; j<=y; j++){
if(i*j!=0){
d[i][j]=max(a[d[i-1][j]],b[d[i][j-1]]);
}
else{
if(i!=0){
d[i][j]=a[d[i-1][j]];
}
else if(j!=0) d[i][j]=b[d[i][j-1]];
}
}
}
if(n==d[x][y])return true;
else return false;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |