题解列表

筛选

编写题解 2819: 数字反转

摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ int n,m=0; cin>>n; while(n){ m=m*10+n%10;//每……

深度优先搜索(C语言)

摘要:求助!运行错误55,不知道哪错了,大佬帮忙找找bug参考代码:#include<stdio.h> #include<stdlib.h> //#include<string.h> //字符串操作文件……

一个采购唯一会的才方法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){    char ch[100000];    fgets(ch,99999,……

我是硬解的废物

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){    int n,p1=0,p2=0;    char s1[10],s2[……

20221124The 3n + 1 problem

摘要:解题思路:注意事项:输入&a,&b不确定其大小参考代码:#include <stdio.h>long len(long n){ long c=1; while(n!=1) { if (n%2==0……

亲密数简化编译C语言,初学者

摘要:解题思路:参考了很多解法,很多复杂度比较高,提交的话时间会超时,思路都大同小异都是利用循环判断要么的话就比较难懂,对初学者不是那么友好下面是我看到的并且认为比较巧妙也比较好懂的一种解法由题目可以很好理……