# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
710740 | PoonYaPat | 운세 보기 2 (JOI14_fortune_telling2) | C++14 | 921 ms | 48840 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
typedef pair<int,int> pii;
int n,k,s[1<<19],q[200001],fen[600010];
long long ans;
map<int,int> mp;
priority_queue<pii> pq;
vector<int> v[200010];
struct node {
int a,b;
bool operator < (const node &o) {
return max(a,b)>max(o.a,o.b);
}
} c[200001];
void update(int l, int r, int idx, int x, int val) {
if (x>r || x<l) return;
if (l==r) s[idx]=val;
else {
int mid=(l+r)/2;
update(l,mid,2*idx,x,val);
update(mid+1,r,2*idx+1,x,val);
s[idx]=max(s[2*idx],s[2*idx+1]);
}
}
int query(int l, int r, int idx, int val) { //find the first element from left that's more than val
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |