摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2041 题意:有一楼梯共M级,刚开始时你在第一级,若每次只能跨上一级或二级,要走上第M级,共有多少种走法? 题解:手推前5项,发现是1,2,3,5,8 , 那么可以猜测是斐波那契数列的衍生,也就是 num[ i ] 阅读全文
posted @ 2020-02-01 15:17 __MEET 阅读(147) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2044 #include <stdio.h> #include <cstring> #include <algorithm> #include <vector> #include <map> #include <a 阅读全文
posted @ 2020-02-01 15:02 __MEET 阅读(114) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2018 #include <stdio.h> #include <cstring> #include <algorithm> #include <vector> #include <map> #include <a 阅读全文
posted @ 2020-02-01 14:42 __MEET 阅读(90) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2084 #include <stdio.h> #include <cstring> #include <algorithm> #include <vector> #include <map> #include <a 阅读全文
posted @ 2020-02-01 14:30 __MEET 阅读(130) 评论(0) 推荐(0) 编辑