2878: 计算矩阵边缘元素之和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N=2e3;ll a…… 题解列表 2024年10月20日 0 点赞 0 评论 2206 浏览 评分: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 评论 480 浏览 评分: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 评论 553 浏览 评分: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 评论 526 浏览 评分:0.0
鬼知道我写了多少遍 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N=1e3;ll a…… 题解列表 2024年05月04日 0 点赞 0 评论 508 浏览 评分:0.0
题解 2878: 计算矩阵边缘元素之和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e3;ll a[…… 题解列表 2024年05月04日 0 点赞 0 评论 406 浏览 评分:0.0
遍历矩阵,行号和列号来决定是不是边缘元素 摘要:参考代码:#include<iostream> using namespace std; int main() { int n, m; cin >> n >> m…… 题解列表 2024年01月01日 0 点赞 0 评论 579 浏览 评分:9.9
题解 2878: 计算矩阵边缘元素之和 #includeusingnamespacestd;constintN=110;inta[N][N],sum;intmain(){intn,m;cin>>n>>m;for(inti=1;ia[i][j];if(i==1||i==n||j==1||j==m){sum+=a[i][j];}}}cout 题解列表 2023年12月18日 0 点赞 0 评论 434 浏览 评分:0.0
2878: 计算矩阵边缘元素之和 ```#includeusingnamespacestd;constintN=110;inta[N][N];intmain(){intn,m,sum=0;cin>>n>>m;for(inti=1;ia[i][j];if(i==1||i==n||j==1||j==m)sum+=a[i][j];}}cou 题解列表 2023年12月18日 0 点赞 0 评论 403 浏览 评分:2.0
2878: 计算矩阵边缘元素之和 ```#includeusingnamespacestd;constintN=110;inta[N][N],b[N][N];intmain(){intn,m,sum=0;cin>>n>>m;for(inti=1;ia[i][j];if(i==1||i==n||j==1||j==m){sum+=a[i] 题解列表 2023年12月18日 0 点赞 0 评论 440 浏览 评分:0.0