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 评论 322 浏览 评分:0.0
贝茜的训练-模拟 摘要:解题思路:模拟注意事项:参考代码:#include<iostream>usingnamespacestd;intm,t,u,f,d,…… 题解列表 2025年05月03日 0 点赞 0 评论 104 浏览 评分:0.0
c++简单解题思路 摘要:解题思路:multiset容器可以自动有序排列数据,count可以统计相同数据的个数注意事项:参考代码:#include <iostream>#include <set>usi…… 题解列表 2025年05月03日 0 点赞 0 评论 165 浏览 评分:0.0
马拦过河卒:深搜 摘要:解题思路:深搜注意事项:参考代码:#include<iostream>usingnamespacestd;constintN&nbs…… 题解列表 2025年05月03日 0 点赞 0 评论 138 浏览 评分: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 评论 578 浏览 评分: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 评论 561 浏览 评分:0.0
T1011最大公约数和最小公倍数 摘要:解题思路:注意事项:参考代码:#(method 1th:)a,b=map(int ,input().strip().split())def gcd(a,b): if b==0…… 题解列表 2025年05月02日 0 点赞 0 评论 420 浏览 评分:0.0
5行解决,且代码简单易懂 摘要:解题思路:注意事项:参考代码:s=input()print(len(s))for i in s: print(i,end=' ')print()print(s[::-1])…… 题解列表 2025年05月02日 0 点赞 0 评论 525 浏览 评分:0.0
画展布置-排序 摘要:解题思路这个问题要求我们从N幅画中选择M幅,并排列它们,使得相邻画作艺术价值平方的差的绝对值之和最小。首先,我们可以观察到,对于任意两幅画的艺术价值a和b,|a² - b²| = |a-b|·|a+b…… 题解列表 2025年05月02日 2 点赞 0 评论 419 浏览 评分:10.0
防御导弹-DP(最长下降子序列) 摘要:解题思路:DP(最长下降子序列)注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;const…… 题解列表 2025年05月02日 0 点赞 0 评论 175 浏览 评分:0.0