c++简单解题思路 解题思路:multiset容器可以自动有序排列数据,count可以统计相同数据的个数注意事项:参考代码:#include#includeusingnamespacestd;intmain(intargc,charconst*argv[]){intn;inta, 题解列表 2025年05月03日 0 点赞 0 评论 446 浏览 评分:0.0
贝茜的训练-模拟 摘要:解题思路:模拟注意事项:参考代码:#include<iostream>usingnamespacestd;intm,t,u,f,d,…… 题解列表 2025年05月03日 0 点赞 0 评论 377 浏览 评分:0.0
T1015 求和 四行解决 解题思路:注意事项:参考代码:a,b,c=map(int,input().strip().split())deff1(a,b,c):lst=[sum([iforiinrange(1,a+1)]),sum([i**2foriinrange(1, 题解列表 2025年05月03日 0 点赞 0 评论 750 浏览 评分:0.0
矩形滑雪场-记忆化搜索 摘要:解题思路:记忆化搜索注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;const…… 题解列表 2025年05月03日 0 点赞 0 评论 443 浏览 评分:0.0
采药[NOIP2005复赛普及组]:01背包 摘要:解题思路:01背包注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;consti…… 题解列表 2025年05月03日 0 点赞 0 评论 403 浏览 评分:0.0
ISBN码-模拟+双指针 摘要:解题思路:模拟注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;intmain(…… 题解列表 2025年05月03日 0 点赞 0 评论 381 浏览 评分:0.0
排座椅[NOIP2008 年普及组]:贪心 摘要:解题思路:贪心策略, 分隔最多同学对数倒序排列, 选取前k(l)个加入vector, 然后以Idx排序输出注意事项:参考代码:#include<bits/stdc++.h>using&…… 题解列表 2025年05月04日 0 点赞 0 评论 465 浏览 评分: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 评论 889 浏览 评分: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 评论 738 浏览 评分:0.0
T1020 猴子偷桃 摘要:解题思路:注意事项:参考代码:n=int(input())def f(n): s=1 while n-1: …… 题解列表 2025年05月04日 1 点赞 0 评论 838 浏览 评分:0.0