自定义函数之数字后移 摘要:解题思路:创建一个数组把前面需要替换的数组进行储存,数组整体后移之后再加到数组前面注意事项:注意数组越界欸,一定要看清楚!!!参考代码:import java.util.Scanner;public …… 题解列表 2024年02月21日 0 点赞 0 评论 320 浏览 评分:9.9
malloc函数的使用 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int main() { int n, i, m; scanf("%d", &n); …… 题解列表 2024年02月21日 0 点赞 0 评论 247 浏览 评分:9.9
c++解马走日 摘要:解题思路:注意事项:参考代码://马走日经典应用 #include<iostream>#include<cstdio>#include<cstring>#include<vector>using na…… 题解列表 2024年02月21日 0 点赞 0 评论 524 浏览 评分:9.9
连续出现的字符 摘要:k = int(input()) s = input() for i in range(len(s) - k + 1): window = s[i:i+k] if len(…… 题解列表 2024年02月21日 1 点赞 1 评论 302 浏览 评分:9.9
编写题解 2760: 整型与布尔型的转换 摘要:代码: a=int(input()) b=bool(a) a=int(b) print(a) 注意:`bool`是`int`子类,故正常的创建与删除方式 **不…… 题解列表 2024年02月22日 0 点赞 0 评论 434 浏览 评分:9.9
编写题解 2761: Hello, World!的大小 摘要: s="Hello, World!" print(len(s)+1) #原题为C语言题目,故结果+1,系统才会判定正确 原题为C语言题目,故结果+1,系统才会判定正确…… 题解列表 2024年02月22日 0 点赞 0 评论 649 浏览 评分:9.9
输出最高分数的学生姓名C解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char s[100][21]; int n,a[100],i,max=0,p; scanf(…… 题解列表 2024年02月22日 0 点赞 0 评论 355 浏览 评分:9.9
Jayden-[解释通俗易懂,一看就会! ] 完数的判断 摘要:解题思路: 1、首先我们要明白什么是完数?完数就是一个数如果恰好等于不包含它本身所有因子之和,而这些因子都能被这个数整除。例如6 = 1 + 2 + 3,其中1、2、3都能被6整除,因此完数6…… 题解列表 2024年02月22日 0 点赞 1 评论 259 浏览 评分:9.9
编写题解 2908: 白细胞计数 摘要:解题思路:1,输入;2,冒泡排序;3,除去第一个最后一个累加求平均值;4,原数据(除去第一个最后一个)与平均值作差;5,输出。注意事项:参考代码:#include <stdio.h>int main(…… 题解列表 2024年02月22日 0 点赞 0 评论 465 浏览 评分:9.9
JAVA的动态规划解法 摘要:解题思路:注意事项:参考代码:import java.util.*; public class Main { public static void main(String[] args) …… 题解列表 2024年02月22日 0 点赞 0 评论 410 浏览 评分:9.9