# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
976383 | vjudge1 | Pizza (COCI21_pizza) | C++17 | 1 ms | 348 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<bits/stdc++.h>
#define ll long long
#define nitro ios_base::sync_with_stdio;cin.tie(0);cout.tie(0);
using namespace std;
int n,m,k,ans=0;
int a[101],b[101];
bool binser(){
bool temp=true;
int low=1;
int high=k;
int mid;
for(int i=1;i<=n;i++){
// cout<<"cari "<<a[i]<<endl;
while(low<=high&&temp==true){
// cout<<b[mid]<<endl;
mid=(low+high)/2;
if(a[i]<b[mid]){
high=mid-1;
}
else if(a[i]>b[mid]){
low=mid+1;
}
else if(a[i]==b[mid]){
return false;
}
}
low=1;
high=k;
}
# | 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... |