编写题解 2970: 计算两个日期之间的天数 摘要:解题思路:(起始年1.1为标准)结束总天-开始天注意事项:参考代码:import java.util.*;public class Main{ public static void main(S…… 题解列表 2024年12月02日 0 点赞 0 评论 456 浏览 评分:9.9
不用递归也能解出这题 摘要://完成一个递归程序,倒置字符数组。并打印实现过程 //递归逻辑为: //当字符长度等于1时,直接返回 //否则,调换首尾两个字符,在递归地倒置字符数组的剩下部分 //输出每一次倒置后的结果,…… 题解列表 2024年12月02日 0 点赞 1 评论 459 浏览 评分:9.9
哥德巴赫曾猜测 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int fun(int n) { if (n == 1) { return 0; } for (int…… 题解列表 2024年12月02日 1 点赞 1 评论 395 浏览 评分:9.9
简单纯粹的解法(c语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int n,m; scanf("%d",&n); m=n; int a[n]; i…… 题解列表 2024年12月03日 0 点赞 0 评论 466 浏览 评分:9.9
不懂可评论 摘要:解题思路:注意事项:参考代码:class Time: def __init__(self): self.__h=0 #__表示私有,防止外部访问和修改 …… 题解列表 2024年12月03日 0 点赞 0 评论 360 浏览 评分:9.9
2925 ******自己复习用********** 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>#include <stdbool.h>int main() { int n = 0; …… 题解列表 2024年12月03日 0 点赞 0 评论 263 浏览 评分:9.9
不懂可评论 摘要:解题思路:注意事项:参考代码:def Compare(a, b): if isinstance(a, int) and isinstance(b, int): return…… 题解列表 2024年12月04日 0 点赞 0 评论 294 浏览 评分:9.9
编写题解 1002: [编程入门]三个数最大值 摘要:解题思路: 假设a是最大值,然后用a与b,c 比较,哪个大就让max等于哪个注意事项:参考代码:#include <stdio.h>int main() { int a, b, c; i…… 题解列表 2024年12月05日 8 点赞 0 评论 852 浏览 评分:9.9
编写题解 2775: 等差数列末项计算 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a1,a2,n,d; scanf("%d %d %d",&a1,&a2,&n); d…… 题解列表 2024年12月05日 0 点赞 0 评论 210 浏览 评分:9.9
【超详细】简单易懂的字符串插入(C语言) 摘要:解题思路:因为在原数组上直接操作可能会比较复杂、麻烦,所以我们可以定义3个字符串,第一个、第二个字符串a、b用于输入,第三个字符串c用于操作,最后我们输出的也是第三个字符串c。我们大概可以分为三部走:…… 题解列表 2024年12月05日 0 点赞 0 评论 527 浏览 评分:9.9