题解列表

筛选

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

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

祝你好运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……

冒泡排序c++

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

3001:整数的和题解

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

团伙--详细解答(不知道怎么处理敌人关系的进来)

摘要:解题思路:1、该题的思想就是并查集,但是有点不同,就是要记录敌人关系,所以要想办法来记录一下敌人的关系2、我这里初始化2n长度的数组,前n个记录朋友关系,后n个记录敌人关系3、重点理解题目说的一句话:……