#include <iostream>
#include <cstdio>
#define Max 200005
using namespace std;
struct Seg_Tree
{
}tt[Max<<2];
int max(int a,int b)
{
}
int val[Max];
//存放元节点的值
int build(int left,int right,int idx)
{
}
void update(int id,int x,int idx)
//x 作为被更新的成绩值
{
}
int query(int left,int right,int idx)
{
}
int main()
{
return 0;
}