# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1166816 | _rain_ | Fortune Telling 2 (JOI14_fortune_telling2) | C++20 | 56 ms | 42560 KiB |
#include<bits/stdc++.h>
using namespace std;
typedef long long LL;
const int N=(int)2e5;
const int MAXLOG=16;
vector<int>nen;
int a[N+2],b[N+2],t[N+2];
int n,k;
int Find(vector<int>&x,int val){
return upper_bound(x.begin(),x.end(),val)-x.begin();
}
int rmq[N*3+2][MAXLOG+2],LOG[N+2];
struct Node{
int pos,x,y;
bool operator < (const Node&other) const{
return pos>other.pos;
}
};
int Getmax(int l,int r){
if (l>r) return 0;
int x=LOG[r-l+1];
return max(rmq[l][x],rmq[r-(1<<x)+1][x]);
}
vector<Node>event;
int lim;
int bit[3*N+2];
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |