# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
817669 | FEDIKUS | 커다란 상품 (IOI17_prize) | C++17 | 63 ms | 536 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "prize.h"
#include<vector>
#include<set>
using namespace std;
const int maxn=2e5+10;
const int koren=450;
int res=-1;
int maxi=0;
set<pair<int,int> > veliki;
int fwt[maxn];
int n;
void dodaj(int x){
x++;
for(;x<maxn;x+=x&-x) fwt[x]++;
}
int qry(int x){
int ret=0;
x++;
if(x==0) return 0;
for(;x>0;x-=x&-x) ret+=fwt[x];
return ret;
}
bool uradi(int l,int r,bool levi,bool desni){
if(l>r) return false;
int mid=l+(r-l)/2;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |