没有写input和print函数 摘要:解题思路:注意事项:参考代码:#include#includetypedef struct { char name[10]; char number[10]; int grade[3…… 题解列表 2024年02月23日 0 点赞 0 评论 516 浏览 评分:9.9
题解 1014: [编程入门]阶乘求和 摘要:解题思路:数据类型,阶乘表达注意事项:数据类型参考代码:#include<stdio.h>int main(){long sn=0,sum1=1;int n;scanf("%d",&n);if(n<=…… 题解列表 2024年02月23日 0 点赞 0 评论 509 浏览 评分:0.0
结构体的使用 摘要:解题思路:注意事项:参考代码:#include <stdio.h>// 定义日期结构体struct Date { int year; int month; int day;};// 判断是否为闰年in…… 题解列表 2024年02月23日 0 点赞 0 评论 442 浏览 评分:9.9
malloc函数的使用 摘要:解题思路:注意事项:注意输入n后直接换行会被scanf吞掉,因此需要加一个getchar(),输入完字符串输入m时同理。参考代码:#include<stdio.h>#include<stdlib.h>…… 题解列表 2024年02月23日 0 点赞 0 评论 558 浏览 评分:9.9
编写题解 2908: 白细胞计数 摘要:解题思路:1,输入;2,冒泡排序;3,除去第一个最后一个累加求平均值;4,原数据(除去第一个最后一个)与平均值作差;5,输出。注意事项:参考代码:#include <stdio.h>int main(…… 题解列表 2024年02月22日 0 点赞 0 评论 747 浏览 评分:9.9
Sn的公式求和,递归 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int fun(int ret) { if (ret > 9) { return ret + fun(ret / 10); } els…… 题解列表 2024年02月22日 0 点赞 0 评论 558 浏览 评分:0.0
编写题解 1266: 马拦过河卒 解题思路:动态规划注意事项:参考代码:a,b,c,d=map(int,input().split())stop_point=[(0,0),(-1,-2),(1,-2),(-1,2),(1,2),(2,1),(2,-1),(-2,1),(-2, 题解列表 2024年02月22日 0 点赞 0 评论 485 浏览 评分:0.0
Jayden-[解释通俗易懂,一看就会! ] 完数的判断 摘要:解题思路: 1、首先我们要明白什么是完数?完数就是一个数如果恰好等于不包含它本身所有因子之和,而这些因子都能被这个数整除。例如6 = 1 + 2 + 3,其中1、2、3都能被6整除,因此完数6…… 题解列表 2024年02月22日 0 点赞 1 评论 553 浏览 评分: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 评论 633 浏览 评分:9.9
查找特定的值C解 摘要:解题思路:注意事项:注意看题参考代码:#include<stdio.h>int main(){ int n,a[10000],i,m,count=0; scanf("%d",&n); …… 题解列表 2024年02月22日 0 点赞 0 评论 514 浏览 评分:0.0