充电中...
充电中...
全部文章
分类
归档
标签
去牛客网
登录
/
注册
充电中...的博客
全部文章
(共7篇)
题解 | #打家劫舍(二)#
两个端点不能同时出现 #include <stdio.h> int main(){ int n = 0; scanf("%d",&n); int arr[n];  ...
C
2022-07-09
0
348
题解 | #信封嵌套#
C写的 #include <stdio.h> int main(){ int n = 0; scanf("%d",&n); int letters[n][2]; ...
C
2022-07-02
0
267
题解 | #拦截导弹#
C写的 #include <stdio.h> int main(){ int n = 0; scanf("%d",&n); int arr[n]; int d...
C
2022-07-01
2
245
题解 | #最长上升子序列(一)#
没有人用C写,我来写一个 #include <stdio.h> int main(){ int n = 0; scanf("%d",&n); int arr[n]; &nb...
C
2022-07-01
3
285
题解 | #[NOIP2002 普及组] 过河卒#
都没有人用C写,那我写一个 #include <stdio.h> int fun(int x,int y,int n,int m); int main(){ int n = 0,m = 0,x = 0,y = 0; sc...
C
2022-06-30
2
269
题解 | #龙与地下城游戏问题#
想到最后一步放弃了,又看了一下其他大哥的讲解,奶奶个腿滴 #include <stdio.h> int main(){ int n = 0,m = 0; scanf("%d %d",&n,&m); &nbs...
C
2022-06-30
0
424
题解 | #最大子矩阵#
参考了其他大哥的思路,自己写的 基本思路是 1、求一维数组的最大子序列和 2、最大子矩阵有可能是1到n行,所以要遍历 3、为了遍历便捷性,增加一个辅助数组total[i][j] ,用来存放前第j列前i行的元素和 #include <stdio.h...
C
2022-06-29
0
450