字符串的修改(摸鱼做法) 摘要:根据题意 每个字符想变成另一个字符 只需一步即可 所以我们只需要 找出两个字符串中相同的字符个数 然后拿最大的长度减去他们即可 ```c #include using namespace s…… 题解列表 2021年05月11日 0 点赞 0 评论 335 浏览 评分:6.0
求1+2+3+...+n的值 (Java代码) 摘要:  ``` java import java.util.Scanner; public …… 题解列表 2021年05月11日 0 点赞 0 评论 559 浏览 评分:9.9
7月和8月都是大月,都是31天,所以在这里进行分类就可以很好解决这个问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>typedef struct node{ int year; int month; …… 题解列表 2021年05月11日 0 点赞 0 评论 437 浏览 评分:6.0
Jam的计数法-------c 摘要:#include <iostream>#include <stdio.h>#include <math.h>#include <algorithm>#include <string.h> using …… 题解列表 2021年05月11日 0 点赞 0 评论 324 浏览 评分:0.0
使用布尔函数来完成题目 摘要:解题思路:首先,我知道在基本的C语言的函数的中是没有bool元素的,而我们需要定义话的可以有三种方法的1 && 2./* 第一种方法 */ #define TRUE 1 #define FALSE…… 题解列表 2021年05月11日 0 点赞 0 评论 309 浏览 评分:9.9
不知道错哪里了... 摘要:```c #include int main(void) { int n, sn = 0, a; scanf("%d", &n); for(n; n > 0; n--) { …… 题解列表 2021年05月12日 0 点赞 0 评论 383 浏览 评分:0.0
字符串编辑 摘要:解题思路:swicth语句进行操作选项注意事项:参考代码:#include<stdio.h>#include<string.h>void del(char *ch,char c){ int i,key…… 题解列表 2021年05月12日 0 点赞 0 评论 249 浏览 评分:0.0
c++深度搜索解题 摘要:#### ### ## # 本题的原思路来自用户名为‘gyh0416’的用户(首先在此感谢这位用户),我在看到这位作者的题解后觉得非常好,便写了这个翻版。大家可以在本题题解中找到这位作者用C#写的代码…… 题解列表 2021年05月12日 0 点赞 0 评论 239 浏览 评分:0.0
题解 1249: 简单编码 摘要:参考代码:#include <stdio.h>#include <stdlib.h>#include<string.h>#include<math.h>int main(){ char str[…… 题解列表 2021年05月12日 0 点赞 0 评论 238 浏览 评分:0.0
C++递归解题《数组的距离》 摘要:###** 注意:没有很好的处理递归,所以耗时可能会有所延长。 #### 基本思路就是:对于一个递增数组,如果前一个数大于b,则它后面的数一定大于b,所以后面的数不用考虑,这样会节省很多时间。 `…… 题解列表 2021年05月12日 0 点赞 0 评论 617 浏览 评分:9.9