摘要: 大意:给出一个排列的上升下降的情况,求满足条件的序列数。例如:321 对应着 DD, ID对应着: 231、132。DP问题,分析待整理,本题个人觉得挺经典的。 1 /* 2 ID:esxgx1 3 LANG:C++ 4 PROG:hdu4055 5 */ 6 #include 7 #includ... 阅读全文
posted @ 2014-07-28 19:44 e0e1e 阅读(141) 评论(0) 推荐(0)
摘要: 先上一枚水题,模拟。/*ID:esxgx1LANG:C++PROG:hdu4054*/#include #include #include #include using namespace std;int main(void){ #ifndef ONLINE_JUDGE freopen(... 阅读全文
posted @ 2014-07-28 19:12 e0e1e 阅读(155) 评论(0) 推荐(0)
摘要: 拍水题到现在还N个WA, 想去掉memset结果又莫名其妙的WA还找不到错误- -。。最近RP太差了 1 /* 2 ID:esxgx1 3 LANG:C++ 4 PROG:hdu1559 5 */ 6 #include 7 #include 8 #include 9 #include 10 u... 阅读全文
posted @ 2014-07-28 18:44 e0e1e 阅读(184) 评论(0) 推荐(0)
摘要: 扫描线 + 线段树, 线段树写的有点儿退化,随便了- -。。。 1 /* 2 ID:esxgx1 3 LANG:C++ 4 PROG:hdu1542 5 */ 6 #include 7 #include 8 #include 9 #include 10 using name... 阅读全文
posted @ 2014-07-28 17:41 e0e1e 阅读(171) 评论(0) 推荐(0)
摘要: XOR高斯消元模板题,纯裸模板,不多说。 1 /* 2 ID:esxgx1 3 LANG:C++ 4 PROG:hdu3364 5 */ 6 #include 7 #include 8 #include 9 #include 10 using namespace std;11 12 #defi... 阅读全文
posted @ 2014-07-28 00:44 e0e1e 阅读(79) 评论(0) 推荐(0)