# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
708973 | ToroTN | Jousting tournament (IOI12_tournament) | C++14 | 472 ms | 7684 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
using namespace std;
//#include "grader.cpp"
int n,c,r,a[100005],x[100005],y[100005],seg[400005],lz[400005],seg2[400005];
int l,late,sweep[100005];
void build2(int tree,int st,int ed)
{
int md=(st+ed)/2;
if(st==ed)
{
seg2[tree]=a[st];
return;
}
build2(2*tree,st,md);
build2(2*tree+1,md+1,ed);
seg2[tree]=max(seg2[2*tree],seg2[2*tree+1]);
}
int query2(int tree,int st,int ed,int l,int r)
{
int md=(st+ed)/2;
if(st>r||ed<l)return -1e9;
if(st>=l&&ed<=r)return seg2[tree];
return max(query2(2*tree,st,md,l,r),query2(2*tree+1,md+1,ed,l,r));
}
void build(int tree,int st,int ed)
{
int md=(st+ed)/2;
if(st==ed)
{
seg[tree]=1;
컴파일 시 표준 에러 (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... |