# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
587476 | NekoRolly | RMQ (NOI17_rmq) | C++17 | 55 ms | 9824 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N = 1e5+4;
struct St{
int n,t[N<<1];
void up(int l,int r,int val){
for (l+=n, r+=n; l<r; l>>=1, r>>=1){
if (l&1) t[l] = max(t[l], val), l++;
if (r&1) r--, t[r] = max(t[r], val);
}
}
int que(int i){ int ans = t[i+=n];
for (; i>>=1; ) ans = max(ans, t[i]);
return ans;
}
} d1;
int n,q;
int a[N],p[N];
int L[N],R[N];
set<int> d2;
vector<int> d3[N];
int main(){
ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
컴파일 시 표준 에러 (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... |