摘要:
做道水树形动规。。。也不解释。看程序什么都懂了。//By YY_More#include<cstdio>#include<algorithm>using namespace std;struct edge{ int point; edge *next;};edge *g[1500];bool ed[1500];int yes[1500],no[1500],N,h,k,a;void insert(int from,int to){ edge *p=new edge; (*p).next=g[from]; (*p).point=to; g[from]=p;};void dp 阅读全文