题解列表

筛选

20221124The 3n + 1 problem

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

我是硬解的废物

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

一个采购唯一会的才方法

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

深度优先搜索(C语言)

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

编写题解 2819: 数字反转

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

DP三角形题解

摘要:解题思路:注意事项:参考代码:import java.util.Arrays;import java.util.Scanner;public class Main {    public static……