蓝桥杯2023年第十四届省赛真题-阶乘的和 摘要:解题思路:注意事项:参考代码:n = int(input()) a = list(map(int,input().split())) a.sort() from collections impo…… 题解列表 2024年02月27日 0 点赞 0 评论 990 浏览 评分:8.0
编写题解 2774: 计算三角形面积 摘要:解题思路:注意事项:参考代码:import mathx1,y1,x2,y2,x3,y3=map(float,input().split())a=math.sqrt(math.pow(x1-x2,2)+…… 题解列表 2024年02月26日 0 点赞 0 评论 339 浏览 评分:0.0
1016: [编程入门]水仙花数判断 摘要:for i in range(100, 1000): temp = i num1 = temp % 10 temp //= 10 num2 = temp % 10 tem…… 题解列表 2024年02月26日 0 点赞 0 评论 306 浏览 评分:0.0
编写题解 2772: 苹果和虫子-while循环 摘要:解题思路:注意事项:参考代码:n,x,y=map(int,input().split())while y<(n*x): if y%x==0: print(n-(y//x)) …… 题解列表 2024年02月26日 0 点赞 0 评论 427 浏览 评分:0.0
f-string编写题解 2750: 字符菱形 摘要:解题思路:注意事项:参考代码:a=input()for i in range(3): print(' '*(2-i), end='') print(f…… 题解列表 2024年02月26日 1 点赞 0 评论 401 浏览 评分:0.0
编写题解 1810: [编程基础]输入输出练习之精度控制3 摘要:解题思路:注意事项:参考代码:a,b,c,d=map(str,input().split())print(f'{a} {int(b):>4} {float(c):.2f} {float(d):…… 题解列表 2024年02月26日 0 点赞 0 评论 352 浏览 评分:0.0
近似GCD(python组) 摘要:解题思路:使用双指针,只要位置i上的数与g取得的最大公约数是g的时候,j 到 i-1 的位置上便都是可以成为子数组 ,所以用 i - j 便可以得出子数组个数如果不能取得时,这里便是需要修改数的位置,…… 题解列表 2024年02月26日 1 点赞 2 评论 755 浏览 评分:9.9
翻转(模拟法) 摘要:解题思路:注意事项:参考代码:n = int(input()) for i in range(n): ans=0 T=list(input()) S=list(inpu…… 题解列表 2024年02月25日 1 点赞 0 评论 555 浏览 评分:9.9
Python最简单 摘要:解题思路:在递推关系为f(n)=f(n−1)+f(n−3) 的情况下while True: n = int(input()) if n == 0: break …… 题解列表 2024年02月24日 0 点赞 0 评论 685 浏览 评分:8.3
2863: 删除单词后缀py解法 摘要:解题思路:注意事项:参考代码:a=input() b=a[-2:] c=a[-3:] if b=='er': print(a[:-2]) elif b=='l…… 题解列表 2024年02月24日 0 点赞 0 评论 346 浏览 评分:0.0