2014年10月21日

D. Red-Green Towers Dp

摘要: 题意:有两种颜色的积木 向上垒,每层只能是同一种颜色,且每层的个数等于层数。问有多少种垒法。Dp滚动数组搞下就好了。#include #include #include #include #include #include #include #include #include #include #i... 阅读全文

posted @ 2014-10-21 16:12 一个西瓜 阅读(280) 评论(0) 推荐(0)

Hdu5067旅行商

摘要: 题意:经历所有要求的点,最少距离。诶 i==x的时候 continue了,fst 挂了。#include #include #include #include #include #include #include #include #include #include #include #includ... 阅读全文

posted @ 2014-10-21 16:02 一个西瓜 阅读(170) 评论(0) 推荐(0)

Hdu5068线段树

摘要: 题意 :每层都有2个门,每个门后面都能通向下一层的两个门,有两个操作 ,第一个 问 从a层到 b层的方法数,第二个 修改 其中某门通向某门的状态。线段树单点更新,矩阵连通性构造 离散数学里有讲。#include #include #include #include #include #include... 阅读全文

posted @ 2014-10-21 16:00 一个西瓜 阅读(233) 评论(0) 推荐(0)

导航