# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1164293 | KhoaDuy | Growing Vegetables is Fun 5 (JOI24_vegetables5) | C++17 | 3098 ms | 5132 KiB |
#include<bits/stdc++.h>
using namespace std;
#define endl '\n'
bool solve(int n,int a[],int b[],int c[],int x){
int MaxL=0,MinR=n;
for(int i=0;i<n;i++){
int l,r;
int low=i,high=n-1;
low--,high++;
while(high-low>1){
int mid=((high-low)>>1)+low;
if(a[mid]-b[i]>=-x){
high=mid;
}
else{
low=mid;
}
}
l=high;
low=i,high=n-1;
low--,high++;
while(high-low>1){
int mid=((high-low)>>1)+low;
if(a[mid]-b[i]<=x){
low=mid;
}
else{
high=mid;
}
}
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |