4123专题

HDU 4123 Bob’s Race 树形DP + RMQ

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4123 代码: //#include <bits/stdc++.h>#include <cstdio>#include <cstring>#include <cmath>using namespace std;const int maxn = 50000 + 5;int max(int