# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
781307 | vjudge1 | Meetings (IOI18_meetings) | C++17 | 3931 ms | 786432 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "meetings.h"
#include<bits/stdc++.h>
using namespace std;
vector<long long> minimum_costs(vector<int> H, vector<int> L, vector<int> R) {
int n = H.size();
long long C[n][n];
memset(C, 0, sizeof C);
for(int i = 0; i < n; i++) {
int mx = 0;
long long ans = 0;
for(int j = i; j < n; j++)
C[i][j] = ans += mx = max(mx, H[j]);
ans = 0;
mx = 0;
for(int j = i+1; j--;)
C[i][j] = ans += mx = max(mx, H[j]);
}
vector<long long> ans(L.size(), 1e18);
for(int i = 0; i < L.size(); i++)
for(int j = L[i]; j <= R[i]; j++)
ans[i] = min(ans[i], C[j][L[i]]+C[j][R[i]]-H[j]);
return ans;
}
컴파일 시 표준 에러 (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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |