1015: [编程入门]求和训练 摘要:解题思路:注意事项:参考代码:def oa(i): fxa=0 while i!=0: fxa…… 题解列表 2025年01月20日 0 点赞 0 评论 687 浏览 评分:0.0
1016: [编程入门]水仙花数判断 摘要:解题思路:注意事项:参考代码:for i in range(100,1000): i1=i2=i3=0 i1=(int)(i/100) …… 题解列表 2025年01月20日 1 点赞 0 评论 1014 浏览 评分:0.0
1018: [编程入门]有规律的数列求和 摘要:解题思路:注意事项:参考代码:def Fibo(x):#递归得出第i项的结果 while x>0: &nbs…… 题解列表 2025年01月20日 0 点赞 0 评论 695 浏览 评分: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 评论 484 浏览 评分:0.0
1020: [编程入门]猴子吃桃的问题 摘要:解题思路:注意事项:参考代码:n=int(input())output=1for i in range(1,n): output=(output+1)*2print(outp…… 题解列表 2025年01月20日 0 点赞 0 评论 482 浏览 评分:0.0
三个数求最大值 摘要:解题思路:先默认一个是最大,然后和其他的比较参考代码:#include <stdio.h>main(){ int a,b,c,max; scanf("%d %d %d"…… 题解列表 2025年01月20日 6 点赞 0 评论 1456 浏览 评分:0.0
C语言解题,带注释,体现模块化思想 摘要: #include #include typedef struct _node { int value_real; int value_i…… 题解列表 2025年01月20日 0 点赞 0 评论 148 浏览 评分:0.0
同行列对角线的格子 摘要:解题思路:感觉计算机更适合做完再去筛选掉不合理的解注意事项:参考代码:put=list(map(int,input().strip().split()))a=b=c=d=''for j…… 题解列表 2025年01月21日 0 点赞 0 评论 227 浏览 评分:0.0
三进制小数(模拟) 摘要:解题思路:模拟注意事项:进位参考代码:#include<iostream>#include<cmath>usingnamespacestd;…… 题解列表 2025年01月21日 0 点赞 0 评论 145 浏览 评分:0.0
STL解法,优先队列priority_queue #1718: 数据结构-堆排序(c++) 摘要:```#includeusing namespace std;int main(){ int n; cin>>n; priority_queue …… 题解列表 2025年01月21日 0 点赞 0 评论 110 浏览 评分:0.0