| # | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1063225 | JuanproMINE | Fortune Telling 2 (JOI14_fortune_telling2) | C++14 | 10 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>
using namespace std;
#define ll long long
#define pb push_back
#define ff first
#define ss second
const int N=200000;
ll n,k;
vector<pair<ll,ll>>cards;
int binary(ll low, ll mid, ll hi, ll val){
while(low!=mid){
cout<<low<<" "<<mid<<" "<<hi<<" LO MID HI1"<<endl;
if(cards[mid].ff<=val){
low=mid;
mid=(low+hi+1)/2;
}else{
hi=mid;
mid=(low+hi)/2;
}
//cout<<low<<" "<<mid<<" "<<hi<<" LO MID HI2"<<endl;
}
//cout<<"a"<<endl;
return mid;
}
int main(){
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
