上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 132 下一页
摘要: 程序设计导引及在线实践 第一种解法,直接递归,优化后,改为逆推动态规划 打印路径,可以反过来计算。 #include<iostream> using namespace std; #define MAX_NUM 100 int A[MAX_NUM + 10][MAX_NUM + 10]; int D 阅读全文
posted @ 2021-09-13 17:02 katago 阅读(48) 评论(0) 推荐(0)
摘要: http://ybt.ssoier.cn:8088/problem_show.php?pid=1191 #include<iostream> #include<cstdio> using namespace std; const int maxn=100; char f[maxn+1][maxn+1 阅读全文
posted @ 2021-09-02 14:08 katago 阅读(177) 评论(0) 推荐(0)
摘要: http://ybt.ssoier.cn:8088/problem_show.php?pid=1190 #include<iostream> using namespace std; const int maxn=71;//课本里面100有误,long long 都会溢出 const int mod 阅读全文
posted @ 2021-09-02 11:03 katago 阅读(461) 评论(0) 推荐(0)
摘要: http://ybt.ssoier.cn:8088/problem_show.php?pid=1189 把1188的mod和递推公式修改一下即可。 #include<iostream> using namespace std; const int maxn=1000000; const int mo 阅读全文
posted @ 2021-09-02 10:52 katago 阅读(234) 评论(0) 推荐(0)
摘要: http://ybt.ssoier.cn:8088/problem_show.php?pid=1188 #include<iostream> using namespace std; const int maxn=1000000; const int mod=1000; int f[maxn+1]; 阅读全文
posted @ 2021-09-02 10:46 katago 阅读(45) 评论(0) 推荐(0)
摘要: 依次类推可以列出下表: 经过月数 0 1 2 3 4 5 6 7 8 9 10 11 … 小兔子对数 1 0 1 1 2 3 5 8 13 21 34 55 … 大兔对数 0 1 1 2 3 5 8 13 21 34 55 89 总体对数 1 1 2 3 5 8 13 21 34 55 89 144 阅读全文
posted @ 2021-09-01 14:38 katago 阅读(1789) 评论(0) 推荐(0)
摘要: http://ybt.ssoier.cn:8088/problem_show.php?pid=1314 #include<iostream> using namespace std; const int maxn=20+5; long long f[maxn][maxn];//数据可能超出int i 阅读全文
posted @ 2021-09-01 09:57 katago 阅读(306) 评论(0) 推荐(0)
摘要: #include<iostream> using namespace std; const int maxn=1000+5; int f[maxn][2]; //f[i][0] 前i位有几个偶数3情的况 //f[i][1] 前i位有几个奇数3 //f[i][0]=f[i-1][0]*9 + f[i- 阅读全文
posted @ 2021-08-31 17:00 katago 阅读(62) 评论(0) 推荐(0)
摘要: 选择默认配置文件:source envsetup.sh rockchip_rk3568make menuconfig保存配置文件:make savedefconfig 将修改保存到配置文件 configs/rockchip_rk3568_defconfig参考:https://wiki.t-firefly.com/zh_CN/ROC-RK3568-PC/buildroot_develop.html 阅读全文
posted @ 2021-08-31 16:08 katago 阅读(1156) 评论(0) 推荐(0)
摘要: #include<iostream> using namespace std; const int maxn=100; long long a[maxn], b[maxn];//注意要用long long a[i] 代表第i个月的成虫数量,b[i]代表第i个月的幼虫数量 int main() { i 阅读全文
posted @ 2021-08-30 16:21 katago 阅读(307) 评论(0) 推荐(0)
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 132 下一页