통계 - Min-max tree (BOI18_minmaxtree)