【HDU 2586】LCA模版题
练习LCA->RMQ的求法。qwq
#include<bits/stdc++.h>
using namespace std;
#define g() getchar()
#define d(x) isdigit(x)
#define rep(i,s,t) for(int i=(s);i<=(t);i++)
#define N 40010
char ch;
template<class T>
inline void F(T& x){
for(ch=g();!d(ch);ch=g());
for(x=0;d(ch);x=x*10+c