【usaco2002.4】Chores
#include#includeusing namespace std;int n,cnt,ans,head[10001],v[10001],r[10001],ed[10001];struct data{ int to,next;}e[1000001];void insert(int u,int v){ e[++cnt].to=v; e[cnt].next=head[u]; h