简单易理解,利用循环解决此题 摘要:解题思路:注意事项:参考代码:a,b,c=map(int,input().split())d=0da=(1,3,5,7,8,10,12)xiao=(4,6,9,11)for i in range(1,…… 题解列表 2024年03月28日 0 点赞 0 评论 194 浏览 评分:9.9
python代码解决问题 摘要:解题思路:注意事项:参考代码:x1,y1,x2,y2,x3,y3,x4,y4=map(int,input().split())s1=(x2-x1)*(y2-y1)+(x4-x3)*(y4-y3)x_l…… 题解列表 2024年03月27日 0 点赞 0 评论 211 浏览 评分:0.0
蓝桥杯算法训练VIP-摆动序列(秒解) 摘要:解题思路: 每一组数只有唯一两种排列方式,先对K内求得长度在2以上的组合数,然后求和后乘2即可。 1&n 题解列表 2024年03月27日 0 点赞 0 评论 255 浏览 评分:9.9
编写题解 2833: 金币,python超简单 摘要:def calculate_coins(days): coins = 0 # 初始化骑士收到的金币总数为0 n = 1 # 初始化每天的金币数量为1 day_coun…… 题解列表 2024年03月27日 0 点赞 0 评论 280 浏览 评分:0.0
编写题解 2825: 计算多项式的值,python超简单 摘要:x,n = input().split() x = float(x) n = int(n) # 初始化result和item变量 result = 1.0 item = 1.0 # 使用…… 题解列表 2024年03月27日 0 点赞 0 评论 266 浏览 评分:0.0
耿直思路的代码解决输出亲朋字符串 摘要:解题思路:注意事项:101参考代码:a=input()A=list(a)B=[]for i in range(len(A)): if i<len(A)-1: C=ord(A[i])+o…… 题解列表 2024年03月27日 0 点赞 1 评论 348 浏览 评分:9.9
pythonsfrbtrhtrhhfgbfdbfb 摘要:解题思路:注意事项:参考代码:t = int(input()) ans = 0for i in range(t): s = input() a = s.split() if a[0]=…… 题解列表 2024年03月27日 0 点赞 0 评论 229 浏览 评分:0.0
排序问题(2) 摘要:解题思路:注意事项:参考代码:a=list(map(int,input().split()))a.sort()b=a[::-1]for i in b: print(i,end=' …… 题解列表 2024年03月27日 0 点赞 0 评论 181 浏览 评分:0.0
随便写写,记录一下 摘要:```python def turn_the_coin(s1, s2): new_s1 = list(s1) new_s2 = list(s2) change_func…… 题解列表 2024年03月27日 0 点赞 0 评论 289 浏览 评分:0.0
蓝桥杯算法提高VIP-摆花 摘要:解题思路:注意事项:参考代码:n, m= map(int, input().split())t = [0]+list(map(int, input().split()))dp=[[0]*(m+1) f…… 题解列表 2024年03月26日 0 点赞 0 评论 171 浏览 评分:0.0