# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
110479 | Breno_XD | Exhibition (JOI19_ho_t2) | C++14 | 7 ms | 5120 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
#define x first
#define y second
typedef pair<int,int> pii;
const int MAXN = 1100;
int N,M, DP[MAXN][MAXN];
int quadro[MAXN];
pii vetor[MAXN];
int compara(pair<int,int> a, pair<int,int> b){
return a.y<b.y;
}
int dp(int id, int tipo){
//Casos Base
if(DP[id][tipo]>=0) return DP[id][tipo];
if(id>N) return DP[id][tipo] = 0;
if(tipo>M) return DP[id][tipo] = 0;
int a = dp(id+1, tipo);
int b = dp(id, tipo+1);
int c = -1;
if(vetor[id].x <= quadro[tipo]) c = 1+dp(id+1, tipo+1);
int ans = max(a,b);
ans = max(ans, c);
컴파일 시 표준 에러 (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... |