# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
807480 | OrazB | 쌀 창고 (IOI11_ricehub) | C++14 | 93 ms | 2920 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
#define all(x) (x).begin(), (x).end()
#define ll long long int
#define pii pair <int, int>
#define pb push_back
#define ff first
#define ss second
const int N = 1e5+5;
const ll inf = 1e18;
int P[N];
ll pref[N];
int F(int A, int B, int x){
int l = A, r = B, pos = A;
while(l <= r){
int md = (l+r)>>1;
if (P[md] <= x){
pos = md;
l = md + 1;
}else r = md - 1;
}
return pos;
}
ll solve(int A, int B){
ll answer = inf;
int l = P[A], r = P[B];
while(l <= r){
# | 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... |