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