T1003 密码破译 摘要:解题思路:注意事项:参考代码:s=input()lst=[]lst=[ord(i) for i in s]for i in lst: i=chr(i+4) &nb…… 题解列表 2025年05月01日 1 点赞 0 评论 479 浏览 评分:0.0
T1004 母牛递归 摘要:解题思路:注意事项:参考代码:def f(n): if m[n]!=0: return m[n]  …… 题解列表 2025年05月01日 1 点赞 0 评论 659 浏览 评分:0.0
数列排序(C++)笔记 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ …… 题解列表 2025年05月01日 1 点赞 0 评论 223 浏览 评分:0.0
邮局选址问题:贪心策略-横纵坐标中位数 摘要:解题思路: 贪心策略, 横纵坐标中位数注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;const&nb…… 题解列表 2025年05月02日 0 点赞 0 评论 71 浏览 评分:0.0
金明的预算方案(DP+邻接表) 摘要:解题思路:DP (分别考虑只拿主件, 主件+ 1附件, 主件 + 2附件)注意事项:参考代码:#include<bits/stdc++.h>usingnamespace&n…… 题解列表 2025年05月02日 0 点赞 0 评论 97 浏览 评分:0.0
防御导弹-DP(最长下降子序列) 摘要:解题思路:DP(最长下降子序列)注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;const…… 题解列表 2025年05月02日 0 点赞 0 评论 137 浏览 评分:0.0
5行解决,且代码简单易懂 摘要:解题思路:注意事项:参考代码:s=input()print(len(s))for i in s: print(i,end=' ')print()print(s[::-1])…… 题解列表 2025年05月02日 0 点赞 0 评论 335 浏览 评分:0.0
T1011最大公约数和最小公倍数 摘要:解题思路:注意事项:参考代码:#(method 1th:)a,b=map(int ,input().strip().split())def gcd(a,b): if b==0…… 题解列表 2025年05月02日 0 点赞 0 评论 308 浏览 评分: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日 2 点赞 0 评论 390 浏览 评分: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 评论 456 浏览 评分:0.0