| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 557148 | n0sk1ll | 쌀 창고 (IOI11_ricehub) | C++14 | 1081 ms | 884 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "ricehub.h"
#include<bits/stdc++.h>
using namespace std;
long long int typedef li;
int besthub(int n, int m, int x[], li b)
{
int kolko=0;
for (int i=0;i<n;i++)
{
vector<int> pom;
for (int j=0;j<n;j++) pom.push_back(abs(x[i]-x[j]));
sort(pom.begin(),pom.end());
li tmp=b; int sta=0;
for (int j=0;j<n;j++)
{
if (pom[j]>tmp) break;
sta++; tmp-=pom[j];
}
kolko=max(kolko,sta);
}
return kolko;
}
| # | 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... | ||||
