【DP】[USACO 2016 February Contest, Gold]Circular Barn Revisited
题目大意还是这个谷仓,有n(3
#include
#include
usingnamespacestd;
#defineMAXN100
#defineMAXK7
intn,r[MAXN+10],k;
longlongf[MAXN*2+1][MAXN+1][MAXK+1],ans=0x7fffffffffffffffll,dist[MAXN+10][MAXN+10];
voidRead(int&x)