제출 #223667

#제출 시각UTC-0아이디문제언어결과실행 시간메모리
2236672020-04-16 01:27:57laoriu마상시합 토너먼트 (IOI12_tournament)C++14
0 / 100
89 ms9976 KiB
#include <bits/stdc++.h>
using namespace std;
typedef pair <int,int> pp;
struct node
{
int num,r,d;
};
node it[400002];
int f[100002],ll[100002],rr[100002];
int rmq[100002][22];
void update(int id,int l,int r,int pos,node a)
{
if (l>pos||r<pos) return;
if (l==r)
{
it[id].num=a.num;it[id].r=a.r;
it[id].d=a.d;return;
}
int mid=(l+r)/2;
update(id*2,l,mid,pos,a);
update(id*2+1,mid+1,r,pos,a);
it[id].num=it[id*2].num+it[id*2+1].num;
it[id].r=max(it[id*2].r,it[id*2+1].r);
it[id].d=max(it[id*2].d,it[id*2+1].d);
}
pp query(int id,int l,int r,int a,int b)
{
if (l>b||r<a) return {0,0};
if (l>=a&&r<=b)
{
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

컴파일 시 표준 에러 (stderr) 메시지

tournament.cpp: In function 'int GetBestPosition(int, int, int, int*, int*, int*)':
tournament.cpp:60:16: warning: statement has no effect [-Wunused-value]
         for (id;id!=s.end();id++)
                ^
tournament.cpp:67:16: warning: statement has no effect [-Wunused-value]
         for (id;id!=s.end();id++)
                ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...