二级C语言-寻找矩阵最值(C++简易代码) 摘要:解题思路:首先输入一个n,然后双循环输入一个二维数组,判断输入的数绝对值的大小,用3个变量分别记录数的大小,行和列,最后进行输出;注意事项:二维数组不能像一维一样几十万大,容易爆;绝对值在比较的时候需…… 题解列表 2022年05月02日 0 点赞 0 评论 338 浏览 评分:9.9
简单粗暴===寻找矩阵最值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int a[n][n],b,m,k; for…… 题解列表 2022年07月28日 0 点赞 1 评论 193 浏览 评分:9.9
二级C语言-寻找矩阵最值 摘要:```cpp #include using namespace std; int main() { int n,a[7][7],i,j,max,c,s; cin>>n; …… 题解列表 2022年08月17日 0 点赞 2 评论 312 浏览 评分:9.9
求矩阵最大元素值、下标 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j,k,l; int big,tmp; int a[100][100]; scanf("%d",…… 题解列表 2022年10月21日 0 点赞 0 评论 264 浏览 评分:9.9
寻找矩阵最值 摘要:解题思路:这里用到了选择法,思路很简单注意事项:注意这里最后输出的结果的行列要+1;因为数组的是从0开始下标计数的参考代码:#include<stdio.h>int main(){ int n;…… 题解列表 2022年11月12日 0 点赞 0 评论 422 浏览 评分:9.9
菜鸟首次尝试(python)超简单解法 摘要:解题思路:先写个输入,再用for循环来表示饥行,count_hang来记录行数,最后打印出来就行注意事项:参考代码:n=int(input())count_hang=0for i in range(n…… 题解列表 2022年12月06日 0 点赞 0 评论 261 浏览 评分:9.9
1069: 二级C语言-寻找矩阵最值 摘要:解题思路:使用下标记录最大值位置,在对比时使用数组和下标,这样可以少写一个储存最大值的变量使用abs函数,简化代码参考代码:#include <iostream> #include <cmath> …… 题解列表 2023年01月20日 0 点赞 0 评论 219 浏览 评分:9.9
LikeWater - 1069: 二级C语言-寻找矩阵最值 摘要:```cpp #include #include using namespace std; // 输入一个正整数n (1≤ n ≤6),再输入一个n行n列的矩阵, // 找出该矩阵中绝对值最…… 题解列表 2023年02月27日 0 点赞 1 评论 121 浏览 评分:9.9
用列表推导式写的,已通过测试!!! 摘要:解题思路:注意事项:参考代码:# 读入矩阵的大小n = int(input())# 读入矩阵matrix = [list(map(int, input().split())) for _ in ran…… 题解列表 2023年05月16日 0 点赞 0 评论 170 浏览 评分:9.9
寻找矩阵最值 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <math.h> int main() { int i=0,j=0; int n=0,max=0,h…… 题解列表 2023年11月09日 0 点赞 0 评论 131 浏览 评分:9.9