题解列表

筛选

3001:整数的和题解

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

超简单的C语言代码实现

摘要:解题思路:请看代码注意事项:无参考代码:#include<stdio.h>#include<string.h>int _asd(char a[1000]){    gets(a);    int l=……

冒泡排序c++

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

使用vector()解题.

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

矩阵对角求和

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

随便写一下,纪念一下回归

摘要:解题思路: 这个题讲一个通俗的思路,首先由于数据巨大,最大的一个问题就是超时,所以必然不能使用传统的思路,这里可以理解为,我们从最小的质数来分数据,(定理一定可以拆分成多个质数的乘积)在这个质数上将数……