# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
885692 | willychan | Event Hopping 2 (JOI21_event2) | C++17 | 163 ms | 25292 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;
typedef long long ll;
//#include<bits/extc++.h>
//__gnu_pbds
struct seg{
int l;
int r;
int ind;
};
vector<seg> arr;
vector<int> f[20];
int n;
int getcnt(int l,int r){
int cur = l;
int cnt = 0;
for(int p=19;p>=0;p--){
if(f[p][cur]<=r){
cnt+=(1<<p);
cur = f[p][cur];
}
}
return cnt;
}
int main(){
ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0);
int K;cin>>n>>K;
arr.resize(n+1);
vector<int> d;
# | 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... |