摘要: /* codevs 1163 访问艺术馆 红果果的树形dp*/ #include #include #include #define maxn 210 using namespace std; int n,m,lc[maxn],rc[maxn],g[maxn][2],T,v[maxn],f[maxn][maxn*6],x,y; struct node{ int v,t,pre; }e[m... 阅读全文
posted @ 2016-10-19 16:11 一入OI深似海 阅读(146) 评论(0) 推荐(0) 编辑
摘要: /* hdu 1010 Tempter of the Bone 尼玛博客里的题目描述不对...加个奇偶剪枝 可以证明 两个点之间任意距离与欧几里得距离同奇偶 奇偶剪枝 可行性剪枝 特判剪枝... */ #include #include using namespace std; int n,m,T,sx,sy,ex,ey; bool falg; char s[10][10]; int xx[... 阅读全文
posted @ 2016-10-19 16:06 一入OI深似海 阅读(370) 评论(0) 推荐(0) 编辑