题解列表
2042: 杨辉三角2.0版
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long a[1005][1005];int main(){ in……
优质题解
信息学奥赛一本通T1308-高精除(C++代码解析和详细题解)
摘要:代码解析:
1. isSmaller函数用于判断一个字符串是否比另一个字符串更小。它首先比较两个字符串的长度,如果长度不同,则较短的字符串更小。如果长度相同,则从左到右逐个比较字符的大小,直到找到一……
2046: 输出全排列(利用dfs)
摘要:解题思路:注意事项:参考代码:#include <iostream>
using namespace std;
int n;
bool vis[11];
int arr[11];
void ……
优质题解
同行列对角线的格子C++
摘要:## *同行列对角线的格子C++*
##### 先五星后复制 栓Q
> 当n=4,i=2,j=3时,输出的结果是:
(2,1) (2,2) (2,3) (2,4) ……
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 ……