04 2016 档案

摘要:#include #include #include #include #include #include using namespace std; const static int M = 50; int numA[M]; int numB[M]; //使用string重置numA void resetNumA(string numAStr) { memset(numA,0,M... 阅读全文
posted @ 2016-04-28 08:55 &ATM 阅读(182) 评论(0) 推荐(0)
摘要:kuangbin字符串专题传送门--http://acm.hust.edu.cn/vjudge/contest/view.action?cid=70325#overview 算法模板: KMP: const int MAXM=10010; const int MAXN=1000010; int a[MAXN],b[MAXM],Next[MAXM]; int n,m; void getNex... 阅读全文
posted @ 2016-04-27 21:53 &ATM 阅读(180) 评论(0) 推荐(0)
摘要:题目转自:https://crazyac.wordpress.com/dp%E4%B8%93%E8%BE%91/ 1.hdu 1864 最大报销额 唔,用网上的算法连自己的数据都没过,hdu的数据居然就过了。。垃圾数据。。 比如这个:100.00 3 1 A:1000.00 1 A:200.50 ... 阅读全文
posted @ 2016-04-08 05:08 &ATM 阅读(272) 评论(0) 推荐(0)

……