Yazid 的新生舞会------线段树+思维
#include <cstdio>#include <cstring>#include <iostream>#include <vector>#define lson x<<1#define rson x<<1|1using namespace std;const int maxn=500010;typedef...