http://www.jungol.co.kr/bbs/board.php?bo_table=pbank&code=3239 JUNGOL www.jungol.co.kr #include //Segment Tree typedef long long LL; int N, M; const int TLM = 1 b ? b : a; else return a; } void init(int now, int s, int e) { minT[now] = N + 1; if (s >= e) return; int lch = now * 2, rch = lch + 1; int m = (s + e) / 2; init(lch, s, m); init(rch, m + 1, e); } void update(int now, int s, int e, int t..