采药[NOIP2005复赛普及组]:01背包 摘要:解题思路:01背包注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;consti…… 题解列表 2025年05月03日 0 点赞 0 评论 35 浏览 评分:0.0
矩形滑雪场-记忆化搜索 摘要:解题思路:记忆化搜索注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;const…… 题解列表 2025年05月03日 0 点赞 0 评论 39 浏览 评分:0.0
只有50分的看过来 摘要:解题思路: 思路无非就是找到最小值和最大值的下标,然后根据下标分别与第一个数和最后一个数进行交换注意事项: 题目要求的交换其实有先后顺序,即先将第一个数和最小值交换,再将最后一个数和最大值交换,这就会…… 题解列表 2025年05月03日 0 点赞 0 评论 105 浏览 评分:0.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 评论 56 浏览 评分:0.0
贝茜的训练-模拟 摘要:解题思路:模拟注意事项:参考代码:#include<iostream>usingnamespacestd;intm,t,u,f,d,…… 题解列表 2025年05月03日 0 点赞 0 评论 26 浏览 评分:0.0
c++简单解题思路 摘要:解题思路:multiset容器可以自动有序排列数据,count可以统计相同数据的个数注意事项:参考代码:#include <iostream>#include <set>usi…… 题解列表 2025年05月03日 0 点赞 0 评论 41 浏览 评分:0.0
马拦过河卒:深搜 摘要:解题思路:深搜注意事项:参考代码:#include<iostream>usingnamespacestd;constintN&nbs…… 题解列表 2025年05月03日 0 点赞 0 评论 31 浏览 评分:0.0
T1014 阶乘求和 摘要:解题思路:注意事项:参考代码:n=int(input())x,y=0,1#lst=[j for i in range(1,n+1) for j in range(1,i+1)]for i in ran…… 题解列表 2025年05月02日 0 点赞 0 评论 183 浏览 评分:0.0
T1012 字符串分类统计 摘要:解题思路:注意事项:参考代码:s=input()a,b,c,d=0,0,0,0for i in s:if i.isalpha(): a=a+1 …… 题解列表 2025年05月02日 0 点赞 0 评论 87 浏览 评分:0.0
T1011最大公约数和最小公倍数 摘要:解题思路:注意事项:参考代码:#(method 1th:)a,b=map(int ,input().strip().split())def gcd(a,b): if b==0…… 题解列表 2025年05月02日 0 点赞 0 评论 81 浏览 评分:0.0