# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
364787 | cpp219 | Collecting Stamps 3 (JOI20_ho_t3) | C++14 | 1877 ms | 85404 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define ll int
#define ld long double
#define fs first
#define sc second
using namespace std;
const ll N = 200 + 3;
const ll inf = 1e9 + 7;
typedef pair<int,int> LL;
ll n,lens,a[N],dp[N][N][N][2],lim[N];
ll ans;
struct Node{
ll val,L,R,p,lr;
};
bool operator < (Node a,Node b){
return a.val > b.val;
}
priority_queue<Node> pq;
ll Ask(ll L,ll R){
return lens - a[L] + a[R];
}
void Minimize(ll L,ll R,ll p,ll lr,ll val){
if (dp[L][R][p][lr] <= val) return; ans = max(ans,p);
//cout<<L<<" "<<R<<" "<<p<<" "<<lr<<"x\n";
dp[L][R][p][lr] = val; pq.push({val,L,R,p,lr});
}
컴파일 시 표준 에러 (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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |