2878: 计算矩阵边缘元素之和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N=110;int a[N][N];int main(){ in…… 题解列表 2023年12月18日 0 点赞 0 评论 151 浏览 评分:0.0
编写题解 2878: 计算矩阵边缘元素之 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e3;ll a[…… 题解列表 2024年05月12日 0 点赞 0 评论 88 浏览 评分:0.0
2878: 计算矩阵边缘元素之和 python实现,超简单的思路 摘要:解题思路:我看有的同学用的蛇形矩阵思路来做的,我想的是,既然只要是边缘的值,那我直接用i和j判定。i=0/m-1的时候就是在第一行或者最后一行,j=0/n-1的时候,就是第一列或者最后一列,遇到这种直…… 题解列表 2023年12月05日 0 点赞 0 评论 254 浏览 评分:0.0
元素求和(简单版) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int arr[100][100]={0}; int x,y; scanf("%d%d",&x…… 题解列表 2023年11月26日 0 点赞 0 评论 149 浏览 评分:0.0
2878: 计算矩阵边缘元素之和(C语言) 摘要: #include int main() { int m, n; scanf("%d %d", &m, &n); int a[m][n]; for (int i =…… 题解列表 2023年08月01日 0 点赞 0 评论 210 浏览 评分:0.0
计算矩阵边缘元素之和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a[100][100];int main(){ int n,m,su…… 题解列表 2023年07月20日 0 点赞 0 评论 250 浏览 评分:0.0
计算矩阵边缘元素之和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a[100][100];int main(){ int n,m,su…… 题解列表 2023年07月20日 0 点赞 0 评论 88 浏览 评分:0.0
独立完成啦兄弟们 摘要:解题思路:除了b1[1:m-1]问文心一言外其他自己写的注意事项:参考代码:m,n=map(int,input().split())b1=[]for i in range(m): l1=list…… 题解列表 2024年07月31日 1 点赞 0 评论 152 浏览 评分:0.0
2878: 计算矩阵边缘元素之和 摘要:解题思路:注意事项:参考代码:a,b = map(int,input().strip().split())l = []for i in range(a): t = list(map(int,in…… 题解列表 2024年08月04日 0 点赞 0 评论 387 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[100][100] = { 0 }, i, j, n, m,sum=0; scanf("…… 题解列表 2023年06月08日 0 点赞 0 评论 244 浏览 评分:0.0