1018: [编程入门]有规律的数列求和 摘要:解题思路:注意事项:参考代码:def Fibo(x):#递归得出第i项的结果 while x>0: &nbs…… 题解列表 2025年01月20日 0 点赞 0 评论 656 浏览 评分:0.0
1019: [编程入门]自由下落的距离计算 摘要:解题思路:注意事项:参考代码:m,n=map(int,input().split())sum=0for i in range(1,n+1): m=0.5*m &n…… 题解列表 2025年01月20日 0 点赞 0 评论 452 浏览 评分:0.0
1020: [编程入门]猴子吃桃的问题 摘要:解题思路:注意事项:参考代码:n=int(input())output=1for i in range(1,n): output=(output+1)*2print(outp…… 题解列表 2025年01月20日 0 点赞 0 评论 445 浏览 评分:0.0
三个数求最大值 摘要:解题思路:先默认一个是最大,然后和其他的比较参考代码:#include <stdio.h>main(){ int a,b,c,max; scanf("%d %d %d"…… 题解列表 2025年01月20日 5 点赞 0 评论 1296 浏览 评分:0.0
C语言解题,带注释,体现模块化思想 摘要: #include #include typedef struct _node { int value_real; int value_i…… 题解列表 2025年01月20日 0 点赞 0 评论 136 浏览 评分:0.0
同行列对角线的格子 摘要:解题思路:感觉计算机更适合做完再去筛选掉不合理的解注意事项:参考代码:put=list(map(int,input().strip().split()))a=b=c=d=''for j…… 题解列表 2025年01月21日 0 点赞 0 评论 214 浏览 评分:0.0
三进制小数(模拟) 摘要:解题思路:模拟注意事项:进位参考代码:#include<iostream>#include<cmath>usingnamespacestd;…… 题解列表 2025年01月21日 0 点赞 0 评论 128 浏览 评分:0.0
STL解法,优先队列priority_queue #1718: 数据结构-堆排序(c++) 摘要:```#includeusing namespace std;int main(){ int n; cin>>n; priority_queue …… 题解列表 2025年01月21日 0 点赞 0 评论 101 浏览 评分:0.0
矩阵对角线求和python 摘要:参考代码:a=[list(map(int,input().split()) ) for _ in range(3)]s,w=0,0for i in range(len(a)): &nbs…… 题解列表 2025年01月21日 0 点赞 0 评论 352 浏览 评分:0.0
上车人数(模拟 + 递推) 摘要:解题思路:递推系数规律, 计算第二站上下车人数, 按照递推公式计算第x站人数注意事项:第n站下车的人数是第n-1站出发时的人数参考代码:#include<iostream>#inclu…… 题解列表 2025年01月21日 0 点赞 0 评论 158 浏览 评分:0.0