T1012 字符串分类统计 摘要:解题思路:注意事项:参考代码:s=input()a,b,c,d=0,0,0,0for i in s:if i.isalpha(): a=a+1 …… 题解列表 2025年05月02日 2 点赞 0 评论 499 浏览 评分: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 评论 529 浏览 评分:0.0
马拦过河卒:深搜 摘要:解题思路:深搜注意事项:参考代码:#include<iostream>usingnamespacestd;constintN&nbs…… 题解列表 2025年05月03日 0 点赞 0 评论 113 浏览 评分:0.0
c++简单解题思路 摘要:解题思路:multiset容器可以自动有序排列数据,count可以统计相同数据的个数注意事项:参考代码:#include <iostream>#include <set>usi…… 题解列表 2025年05月03日 0 点赞 0 评论 146 浏览 评分:0.0
贝茜的训练-模拟 摘要:解题思路:模拟注意事项:参考代码:#include<iostream>usingnamespacestd;intm,t,u,f,d,…… 题解列表 2025年05月03日 0 点赞 0 评论 83 浏览 评分: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 评论 289 浏览 评分:0.0
矩形滑雪场-记忆化搜索 摘要:解题思路:记忆化搜索注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;const…… 题解列表 2025年05月03日 0 点赞 0 评论 128 浏览 评分:0.0
采药[NOIP2005复赛普及组]:01背包 摘要:解题思路:01背包注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;consti…… 题解列表 2025年05月03日 0 点赞 0 评论 112 浏览 评分:0.0
ISBN码-模拟+双指针 摘要:解题思路:模拟注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;intmain(…… 题解列表 2025年05月03日 0 点赞 0 评论 115 浏览 评分:0.0
排座椅[NOIP2008 年普及组]:贪心 摘要:解题思路:贪心策略, 分隔最多同学对数倒序排列, 选取前k(l)个加入vector, 然后以Idx排序输出注意事项:参考代码:#include<bits/stdc++.h>using&…… 题解列表 2025年05月04日 0 点赞 0 评论 124 浏览 评分:0.0