| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 421771 | Jasiekstrz | Meetings (IOI18_meetings) | C++17 | 5531 ms | 1124 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
#include "meetings.h"
#define fi first
#define se second
using namespace std;
const int NN=75e4;
const long long INF=(long long)1e18+7;
vector<long long> minimum_costs(vector<int> H,vector<int> L,vector<int> R)
{
int n=H.size();
int q=L.size();
vector<long long> ans;
for(int qi=0;qi<q;qi++)
{
int l=L[qi],r=R[qi];
long long w=INF;
for(int i=l;i<=r;i++)
{
long long tmp=H[i];
long long mx=H[i];
for(int j=i-1;j>=l;j--)
{
mx=max(mx,(long long)H[j]);
tmp+=mx;
}
mx=H[i];
for(int j=i+1;j<=r;j++)
{
mx=max(mx,(long long)H[j]);
tmp+=mx;
}
w=min(w,tmp);
}
ans.push_back(w);
}
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... | ||||
