# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
823339 | Trumling | Meetings (IOI18_meetings) | C++14 | 5566 ms | 1492 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "meetings.h"
#include<bits/stdc++.h>
using namespace std;
#define F first
#define S second
#define all(x) x.begin(),x.end()
typedef long long ll;
#define INF 99999999999999999
#define pb push_back
vector<long long> minimum_costs(vector<int> H, std::vector<int> L,
std::vector<int> R) {
ll Q=L.size();
ll N=H.size();
vector<ll>C(Q,INF);
for(int i=0;i<Q;i++)
for(int j=L[i];j<=R[i];j++)
{
ll curr=0,maxi=-1;
for(int c=j;c>=L[i];c--)
{
maxi=max(maxi,(ll)H[c]);
curr+=maxi;
}
for(int c=j+1;c<=R[i];c++)
{
maxi=max(maxi,(ll)H[c]);
curr+=maxi;
}
C[i]=min(C[i],curr);
}
return 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |