#include "testlib.h" #include using namespace std; using pi=pair; int n,m; vector h; vector xy; void reverseProblem(){ reverse(h.begin(),h.end()); for(int i=0;i> dp(n,vector(2,-1)); dp[0][0]=0; dp[0][1]=0; vector> g(n); for(int i=0;i st; for(int i=0;i