题解列表

筛选

优质题解

信息学奥赛一本通T1308-高精除(C++代码解析和详细题解)

摘要:代码解析: 1. isSmaller函数用于判断一个字符串是否比另一个字符串更小。它首先比较两个字符串的长度,如果长度不同,则较短的字符串更小。如果长度相同,则从左到右逐个比较字符的大小,直到找到一……
优质题解

同行列对角线的格子C++

摘要:## *同行列对角线的格子C++* ##### 先五星后复制 栓Q > 当n=4,i=2,j=3时,输出的结果是: (2,1) (2,2) (2,3) (2,4) ……

图像旋转C++

摘要:### ***图像旋转C++*** ##### 先五星后复制 栓Q >输入一个n行m列的黑白图像,将它顺时针旋转90度后输出。 ###### 好嘛 题目其实是偏简单一些的 试着动动脑没准就做……

2042: 杨辉三角

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long a[1005][1005];int main(){    in……

2883: 矩阵加法

摘要:参考代码:#include <bits/stdc++.h>using namespace std;int a[100][100];int b[100][100];int main(){    int ……

2876: 矩阵交换行

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a[100][100];int main(){    int n,m;  ……

2878: 计算矩阵边缘元素之和

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>int main(){    int arr[256][101] = { 0 };    int a, b;    int ……

图像相似度

摘要:参考代码:#include<bits/stdc++.h>using namespace std;int a[100][100];int b[100][100];int main(){    int n……

2881: 图像相似度

摘要:参考代码:#include <bits/stdc++.h>using namespace std;int a[100][100];int b[100][100];int main(){    int ……