题解列表

筛选

排列(C语言代码)(第一次上传题解)

摘要:解题思路:用三重循环解决四个数字的全排列注意事项:题目中说的按从小到大是误导,不需要给数字排序参考代码:#include<stdio.h> int main() {     int a[4]={……

筛排处理 (C++代码)

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

第几天 (C++代码)

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

神奇的fans (C++代码)

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

破解简单密码 (C++代码)

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

【亲和数】 (C语言代码)

摘要:解题思路:注意事项:注意sum1和sum2每次循环归零 参考代码:#include<stdio.h>int main(){ int n=0,a=0,b=0,sum1=0,sum2=0,i=0,k=0;……