摘要:
题意:给一些指定长宽高的砖,求能累出的最大高度,不同砖有不同编号,每种编号对下面的砖做出了限制dp注意输出要用%I64d,否则会wa,以后不用%lld了Sample Input310 10 12 010 10 12 110 10 11 2210 10 11 110 10 11 10Sample Ou... 阅读全文
posted @ 2015-07-27 16:58
miao_a_miao
阅读(188)
评论(0)
推荐(0)
摘要:
一看正确率这么高,以为是水题可以爽一发,结果是没怎么用过的矩阵快速幂,233题解链接:点我 1 #include 2 #include 3 const int N=10; 4 using namespace std; 5 int k,m; 6 struct Matrix{ 7 int map... 阅读全文
posted @ 2015-07-27 16:08
miao_a_miao
阅读(130)
评论(0)
推荐(0)
摘要:
模板题 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #define lson l,mid,rt>1) 11 #define ll long long 12 #define cl(a) memse... 阅读全文
posted @ 2015-07-27 15:49
miao_a_miao
阅读(153)
评论(0)
推荐(0)
摘要:
stl的操作不是很熟练, 记录一下 map map默认是按照key从大到小排序的 从小到大排序,加个greater<int> erase vector: lower_bound and upper_bound copy resize(int n, int val=0) 如果n比原size大,那么会默 阅读全文
posted @ 2015-07-27 14:18
miao_a_miao
阅读(380)
评论(0)
推荐(0)

浙公网安备 33010602011771号