| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 963319 | SuPythony | 쌀 창고 (IOI11_ricehub) | C++17 | 1101 ms | 1252 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "ricehub.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int besthub(int R, int L, int X[], long long B)
{
int ans=0;
for (int i=0; i<R; i++) {
for (int j=i; j<R; j++) {
int pos=(X[i]+X[j])/2;
vector<ll> c;
for (int k=0; k<R; k++) {
c.push_back(abs(pos-X[k]));
}
sort(c.begin(),c.end());
ll used=0;
int a=0;
for (ll i: c) {
if (used+i<=B) {
used+=i;
a++;
} else break;
}
ans=max(ans,a);
}
}
return ans;
}
| # | 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... | ||||
