题解列表

筛选

去掉余数为2的数即可

摘要:关键在于,如何判断某个数是不是平方差 ```c++ #include using namespace std; bool function(int x) { bool res =……

找规律找规律

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

3009: 判断闰年

摘要:解题思路:闰年两种判定方法:要么能被4整除且不能被100整除,或者能被400整除可得参考代码:#include<iostream> using namespace std; int main() ……

快速排序(C++)

摘要:#include<iostream> using namespace std; int arr[100000]; int getpivot(int left, int right) { i……

归并排序(C++)

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; const int N = 1e5 + 10; int arr[N],tmp[N],……

累了,休息会

摘要:解题思路:注意事项:参考代码:                          #include<bits/stdc++.h>                           using nam……