# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
99734 | songc | 허수아비 (JOI14_scarecrows) | C++14 | 752 ms | 67532 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
typedef pair<int, int> pii;
int N;
long long ans;
pii A[202020];
struct Node{
vector<pii> V;
Node *lc=NULL, *rc=NULL;
};
void update(Node *now, int s, int e, pii P){
if (e < P.second || P.second < s) return;
if (s == e) {
now->V.push_back(P);
return;
}
int mid = (s+e)/2;
if (now->lc == NULL) now->lc = new Node;
update(now->lc, s, mid, P);
if (now->rc == NULL) now->rc = new Node;
update(now->rc, mid+1, e, P);
while (!now->V.empty() && now->V.back().second < P.second) now->V.pop_back();
now->V.push_back(P);
}
int query(Node *now, int s, int e, int xlim, int ylim){
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |