摘要: G. New Roads ... 阅读全文
posted @ 2017-01-11 14:26 cxhscst2 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 设s[i][j]为序列i到j的和,当s[i][j]≠0时,即可从i跳到j+1.目标为从1跳到n+1,所以按照题意暴力即可。 #include using namespace std;#define rep(i,a,b) for(int i(a); i = (b); ... 阅读全文
posted @ 2017-01-11 14:22 cxhscst2 阅读(161) 评论(0) 推荐(0) 编辑