题解列表

筛选

矩阵对角求和

摘要:解题思路:1. 首先,声明变量i、j、n、sum1和sum2,它们分别用于控制循环和保存对角线和的结果。2. 通过scanf函数读取用户输入的n,该值表示二维数组的行和列的数量。3. 创建一个大小为n……

祝你好运laber

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

c++萌新的题解

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    //intÊÇÕûÊý 1 2 9 69 100   ……

使用vector()解题.

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>#include<vector>using namespace std;bool cmp(vector……

冒泡排序c++

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

冒泡排序c++

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;struct student{     string name;     doubl……

[编程入门]电报加密

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){    char a[10];    gets(a);    for (int……

冒泡排序c++

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;struct student{     int name;     double s……