# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
164831 | arnold518 | 쌀 창고 (IOI11_ricehub) | C++14 | 19 ms | 760 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "ricehub.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
int R, L, *X, ans;
ll B;
int besthub(int _R, int _L, int *_X, ll _B)
{
int i, j;
R=_R; L=_L; X=_X; B=_B;
ll S=0;
for(i=0, j=0; i<R; i++)
{
while(S<=B && j<R) { j++; S+=X[j]-X[i+j>>1]; }
S-=X[i+j+1>>1]-X[i];
ans=max(ans, j-i);
}
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... |