链表报数问题(Python) 摘要:解题思路:注意事项:参考代码:def find_last_person(n): people = list(range(1, n + 1)) current = 0 # 当前报数人的…… 题解列表 2023年11月13日 0 点赞 0 评论 372 浏览 评分:0.0
python编写a%b 摘要:解题思路:跟a+b一样的思路只是改运算符,具体注意事项参照a+b参考代码:while True: try: a,b=map(int,input().strip().split()) print(a…… 题解列表 2023年11月13日 0 点赞 0 评论 308 浏览 评分:0.0
python编写a+b 摘要:解题思路:用while语句让它一直循环,不然直接打印会只对百分之五十。while语句有始有终,需要用break跳出注意事项:注意代码前面空格的位置参考代码:while True: try: …… 题解列表 2023年11月13日 3 点赞 0 评论 1264 浏览 评分:0.0
矩阵对角线求和 摘要: x1,x2,x3 = map(int,input().split()) x4,x5,x6 = map(int,input().split()) x7,x8,x9 = map(int,inp…… 题解列表 2023年11月12日 0 点赞 0 评论 578 浏览 评分:6.0
成绩排序(Python实现) 摘要:解题思路:注意事项:参考代码:def sort_students(students): students.sort(key=lambda x: (x[2], x[0], x[1])) re…… 题解列表 2023年11月12日 0 点赞 0 评论 366 浏览 评分:0.0
自由下落的距离计算 摘要:解题思路:每次经过的路程均为高度的3倍注意事项:参考代码:m,n=map(int,input().split())c=0for i in range(1,n+1): m=m/2 c+=3*…… 题解列表 2023年11月12日 0 点赞 0 评论 324 浏览 评分:0.0
【Python】如何一行解决这道题 摘要:解题思路:普通的思路注意事项:没什么注意的参考代码:print(sum(list(map(int, [i*'2' for i in range(1,int(input())+1)]))…… 题解列表 2023年11月12日 1 点赞 4 评论 748 浏览 评分:10.0
蓝桥杯算法提高VIP-笨小猴(python) 摘要:解题思路:注意事项:参考代码:try: def prime(x): # 判断x是否为质数 for i in range(1, x): if x % i ==…… 题解列表 2023年11月11日 0 点赞 0 评论 456 浏览 评分:0.0
python语言编写Hello world 摘要:注意题目要求打印的什么,可以使用\n进行换行print("**************************\nHello World!\n**************************")…… 题解列表 2023年11月11日 1 点赞 0 评论 347 浏览 评分:0.0
蓝桥杯2022年第十三届省赛真题-重新排序 摘要:```python n=int(input()) N=list(map(int,input().split())) m=int(input()) s=0 L=[0]*n for i in …… 题解列表 2023年11月11日 3 点赞 1 评论 491 浏览 评分:9.3