T1020 猴子偷桃 摘要:解题思路:注意事项:参考代码:n=int(input())def f(n): s=1 while n-1: …… 题解列表 2025年05月04日 1 点赞 0 评论 284 浏览 评分:0.0
T1019 自由下落 代码 --简明扼要 摘要:解题思路:1000 500 1 125 2 62.5 3 31.25 4注意事项:参考代码:m,n=map(int,input().spli…… 题解列表 2025年05月04日 0 点赞 0 评论 243 浏览 评分:0.0
T1018 数列求和 代码超容易懂 摘要:解题思路:注意事项:参考代码:n=int(input())def f(n): a,b,c=1,2,0 for i in range(1,n+1):&…… 题解列表 2025年05月04日 0 点赞 0 评论 248 浏览 评分:0.0
T1017 完数判断 摘要:解题思路:注意事项:参考代码:n=int(input())for a in range(2,n+1,2): b=[1] for i in range…… 题解列表 2025年05月04日 0 点赞 0 评论 285 浏览 评分:0.0
排座椅[NOIP2008 年普及组]:贪心 摘要:解题思路:贪心策略, 分隔最多同学对数倒序排列, 选取前k(l)个加入vector, 然后以Idx排序输出注意事项:参考代码:#include<bits/stdc++.h>using&…… 题解列表 2025年05月04日 0 点赞 0 评论 88 浏览 评分:0.0
ISBN码-模拟+双指针 摘要:解题思路:模拟注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;intmain(…… 题解列表 2025年05月03日 0 点赞 0 评论 95 浏览 评分:0.0
采药[NOIP2005复赛普及组]:01背包 摘要:解题思路:01背包注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;consti…… 题解列表 2025年05月03日 0 点赞 0 评论 88 浏览 评分:0.0
矩形滑雪场-记忆化搜索 摘要:解题思路:记忆化搜索注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;const…… 题解列表 2025年05月03日 0 点赞 0 评论 108 浏览 评分:0.0
只有50分的看过来 摘要:解题思路: 思路无非就是找到最小值和最大值的下标,然后根据下标分别与第一个数和最后一个数进行交换注意事项: 题目要求的交换其实有先后顺序,即先将第一个数和最小值交换,再将最后一个数和最大值交换,这就会…… 题解列表 2025年05月03日 0 点赞 0 评论 224 浏览 评分:10.0
T1015 求和 四行解决 摘要:解题思路:注意事项:参考代码:a,b,c=map(int, input().strip().split())def f1(a,b,c): lst=[sum([i for i in range(1,a+…… 题解列表 2025年05月03日 0 点赞 0 评论 254 浏览 评分:0.0