题解列表

筛选

老弟,包懂的

摘要:```c #include int main() { int n,num=0; char ch; scanf("%d %c",&n,&ch); if(n1……

最暴力的写法QwQ

摘要:#include<bits/stdc++.h> using namespace std; void solve() { int m,cnt=0; cin>>m; for(int i=……

dfs+判断数组解决排列

摘要:解题思路:注意事项:坑:1.题目空了一格输出,输出一个就换行2.字典序输出参考代码:#include<bits/stdc++.h>const int N=10;//题目默认字典序了strcmpint ……

2^k进制数:组合数

摘要:解题思路:组合数注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; long long c(int n, int ……

质因数分解

摘要:解题思路:注意事项:参考代码n=int(input())f=2while f*f<=n:    if n %f==0:        print(n//f)    f+=1……