| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1091029 | hengliao | 선물상자 (IOI15_boxes) | C++14 | 413 ms | 137364 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "boxes.h"
#include <bits/stdc++.h>
#include <random>
#include <chrono>
using namespace std;
#define F first
#define S second
#define pb push_back
#define vll vector<ll>
#define pll pair<ll, ll>
typedef long long ll;
const ll inf=1e18;
ll delivery(int n, int k, int l, int p[]) {
auto get=[&](ll a, ll b){
if(b<a) return 0LL;
ll re=l;
re=min(re, 2LL*p[b]);
re=min(re, 2LL*(l-p[a]));
return re;
};
ll ans=inf;
for(ll s=0;s<k;s++){
ll cur=get(0, s-1);
ll pre;
for(ll i=s;i<n;i+=k){
cur+=get(i, min(i+k-1, (ll)n-1));
}
ans=min(ans, cur);
}
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... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
