数据结构单链表的使用 摘要:解题思路:注意事项:参考代码:#include "stdio.h"#include<stdlib.h>typedef int Elemtype;typedef struct LNode //结构定义{…… 题解列表 2021年10月11日 0 点赞 0 评论 592 浏览 评分:0.0
最小公倍数 = a*b/最大公约数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int s; int a; int b; int k,m; scanf("%d%d",&a,&b); m=a,k…… 题解列表 2021年10月11日 0 点赞 0 评论 542 浏览 评分:0.0
自由下落的距离计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double M,a,c,d; double b=0; int N; scanf("%l…… 题解列表 2021年10月11日 0 点赞 0 评论 429 浏览 评分:0.0
看看#define是多么强大的存在 摘要:解题思路:1、题目要求输出一个自然数,所以找到一个就可以结束程序。2、由于题目给出的条件很多,为了方便修改和维护,所以想到了#define注意事项:1、使用#define要做到勤用括号(),多用括号代…… 题解列表 2021年10月11日 0 点赞 0 评论 420 浏览 评分:0.0
题解-斐波纳契数列 摘要:解题思路:根据f[i]=f[i-1]+f[i-2]规律不断迭代 注意事项:初始条件,n=1需要单独考虑 参考代码: n=int(input()) f=[0]*n if n==1: …… 题解列表 2021年10月12日 0 点赞 0 评论 581 浏览 评分:0.0
1221: 数列问题 摘要: n=int(input()) f=[0]*(n+1) f[1]=3 f[2]=4 f[3]=5 for i in range(4,n+1): …… 题解列表 2021年10月12日 0 点赞 0 评论 423 浏览 评分:0.0
如何快速求和,看这里 摘要:解题思路:无注意事项:无参考代码:#include<stdio.h>#include<math.h>int main(){ int i,j,n; (void)scanf("%d",&n); int s…… 题解列表 2021年10月12日 0 点赞 0 评论 417 浏览 评分:0.0
[编程入门]有规律的数列求和 摘要:解题思路:注意事项:参考代码:n=int(input())alist=[2,3]blist=[1,2]s=0for i in range(n): alist.append(alist[i]+al…… 题解列表 2021年10月12日 0 点赞 0 评论 827 浏览 评分:0.0
最简短的代码 摘要:解题思路:看代码吧!!注意事项:参考代码:#include<stdio.h>int main(){ printf("1/40,3/40,7/40,9/40,11/40,13/40,17/40,…… 题解列表 2021年10月12日 0 点赞 0 评论 665 浏览 评分:0.0
记录skdhfiasfhgjksadkfh 摘要:解题思路:注意事项:参考代码:#include "stdio.h"#include<stdlib.h>typedef int Elemtype;typedef struct LNode //结构定义{…… 题解列表 2021年10月12日 0 点赞 0 评论 860 浏览 评分:0.0