摘要: 杜教BM递推,据说可以输入矩阵,但是我还不太清楚,初始数据在初始化vector容器时候输入就ok ,输出第n项#include using namespace std;#define rep(i,a,n) for (long long i=a;i=a;i-... 阅读全文
posted @ 2019-01-23 08:57 _年少有为 阅读(554) 评论(0) 推荐(0) 编辑
摘要: M - God of WarAt 184~280 A.D ,there were many kingdoms in China. Three strongest among them are “Wei”, “Shu”, “Wu”. People call t... 阅读全文
posted @ 2019-01-23 08:56 _年少有为 阅读(168) 评论(0) 推荐(0) 编辑
摘要: L - Tiling Dominoes闲聊在大白书上383383383页,上面有详细讲解这道题的dpdpdp方法,第一次做这类状压dp的题时,用的dp的时间复杂度是O(2m∗2m∗n)O(2^m*2^m*n)O(2m∗2m∗n) 可以过另一个一模一样的题,当... 阅读全文
posted @ 2019-01-23 08:56 _年少有为 阅读(159) 评论(0) 推荐(0) 编辑
摘要: J - Hie with the PieThe Pizazz Pizzeria prides itself in delivering pizzas to its customers as fast as possible. Unfortunately, d... 阅读全文
posted @ 2019-01-23 08:56 _年少有为 阅读(235) 评论(0) 推荐(0) 编辑