| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1331387 | alexaaa | 쌀 창고 (IOI11_ricehub) | C++20 | 0 ms | 344 KiB |
#include "ricehub.h"
using namespace std;
#include<bits/stdc++.h>
int besthub(int R, int L, int X[], long long B)
{
int max_count = 0;
for(int i = 0; i < R; i ++){
long long total = 0;
int count = 0;
for(int j =i; j < R; j++){
total += abs(X[i]-X[j]);
if(total > B){
max_count = max(max_count,count);
break;
}
count ++;
}
if(total <= B){
max_count = max(max_count,count);
}
}
return max_count;
}| # | 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... | ||||
