题解 1097: 蛇行矩阵 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a[100][100]; //二维数组用来存数字 int N,b,k=1,m=1;…… 题解列表 2023年04月04日 0 点赞 0 评论 169 浏览 评分:0.0
编写题解 1097: 蛇行矩阵 不理解就找我 嘎嘎简单 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n = 0; int a[20][20] = { 0 }; i…… 题解列表 2023年04月20日 0 点赞 0 评论 160 浏览 评分:0.0
我的牛逼,实力证明一切 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int i,j,sum=1,a=0,va,b=2; for(i=1…… 题解列表 2023年05月09日 0 点赞 0 评论 119 浏览 评分:0.0
C++代码进行解题,思路可与C语言共享 摘要:解题思路:就是每行数组减一注意事项:行与列之间的差值我用了d与k表示参考代码:#include <iostream>using namespace std;int main(){ int N; wh…… 题解列表 2023年07月01日 0 点赞 0 评论 170 浏览 评分:0.0
蛇形矩阵,找规律输出 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int temp=…… 题解列表 2023年11月12日 0 点赞 0 评论 190 浏览 评分:0.0
编写题解 1097: 蛇行矩阵(插入法) 摘要:解题思路:因为数字生成的方式类似于阶梯,因此生成一个二维数组,定义一个k的值为1的数,之后,将数插入进数组中,第一次插入第一行,第二次插入第二行,再插入第一行,在每n次插入之后都逐次递减插入前一行,每…… 题解列表 2023年11月21日 0 点赞 0 评论 174 浏览 评分:0.0
蛇行矩阵清楚明了 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int a[111][111];int main(){ int n,sum=1,sum1,sum2=0; scanf("…… 题解列表 2023年12月10日 0 点赞 0 评论 176 浏览 评分:0.0
c代码记录之蛇形矩阵 摘要: #include int main() { int n,k,i,j,t,m; while(~scanf("%d",&n)){ …… 题解列表 2024年01月05日 0 点赞 0 评论 164 浏览 评分:0.0
利用C++完成蛇形矩阵 摘要:解题思路:注意事项:参考代码://this file is 蛇形矩阵#include<iostream>using namespace std;int matrix[100][100];//定义一个最…… 题解列表 2024年02月02日 0 点赞 0 评论 343 浏览 评分:0.0
数学方法求解蛇行矩阵 摘要:解题思路:本题通过观察可知1 3 6 10 152 5 9 144 8 137 1211a[0][0]+2=a[0][1]; a[0][1]+3=a[0][2]; a[0][2]+4=a[0][3…… 题解列表 2024年03月08日 0 点赞 0 评论 219 浏览 评分:0.0