摘要:
链接 分析:经典DP题,最长不下降子序列的变种,同时需要记录路径,用pre[]数组记录当前结点的前一个结点的方法很妙 1 #include "iostream" 2 #include "cstdio" 3 #include "cstring" 4 #include "string" 5 #inclu 阅读全文
posted @ 2017-06-17 13:50
wolf940509
阅读(143)
评论(0)
推荐(0)
摘要:
链接 分析:当前点的情况仅由其左边和上边的点决定,然后马会走过的点标记一下即可 1 #include "iostream" 2 #include "cstdio" 3 #include "cstring" 4 #include "string" 5 using namespace std; 6 co 阅读全文
posted @ 2017-06-17 13:49
wolf940509
阅读(181)
评论(0)
推荐(0)
摘要:
A题 分析:注意两个点之间的倍数差,若为偶数则为YES,否则为NO 1 #include "iostream" 2 #include "cstdio" 3 #include "cstring" 4 #include "string" 5 #include "cmath" 6 using namesp 阅读全文
posted @ 2017-06-17 10:48
wolf940509
阅读(154)
评论(0)
推荐(0)