题解列表

筛选

20221123字符逆序

摘要:解题思路:注意事项:字符串长度为l,则旧/新字符串下标最大均为l-1;参考代码:#include <stdio.h>#include <string.h>int main(){     int i,j……

去掉空格(简单基础版)

摘要: 解题思路:先要一个可以一直输入,等到不想输入就可以不输入的东西,我们这里可以用到while(a[i]),用这个的原因是当输入正当则继续输入,想结束那就输入ctrl+z即可 接下来不用做处理,直……

C语言训练-阶乘和数*

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

DP三角形题解

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

编写题解 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> //字符串操作文件……