应该不会要这么多for循环,但不失为一种直肠子的解法 摘要:解题思路:注意事项:参考代码:n = int(input())list_m = list(map(int,input().strip().split()))m = int(input())other …… 题解列表 2022年04月15日 0 点赞 0 评论 268 浏览 评分:0.0
自定义函数之数字后移 摘要:解题思路:注意事项:参考代码:n=int(input())arr=list(map(int,input().split()))a&n…… 题解列表 2025年10月05日 0 点赞 0 评论 63 浏览 评分:0.0
自定义函数之数字后移 摘要:解题思路:注意事项:参考代码:def houyi(my_list,m,n): list1=[]+my_list for i in range(n): list1[i] = m…… 题解列表 2024年06月05日 0 点赞 0 评论 195 浏览 评分:0.0
自定义函数之数字后移 摘要:解题思路:注意事项:参考代码:n = int(input()) arr = list(map(str, input().split())) m = int(input()) print('…… 题解列表 2024年04月18日 0 点赞 0 评论 493 浏览 评分:0.0
1046: [编程入门]自定义函数之数字后移 摘要:```python n = int(input()) li = list(map(str,input().split())) m = int(input()) for i in range(m…… 题解列表 2023年12月20日 0 点赞 0 评论 207 浏览 评分:0.0
循环队列之数字后移 摘要:解题思路:看成循环队列即可注意事项:参考代码:n=int(input())x=list(input().split())y=list(x)m=int(input())for i in range(0,…… 题解列表 2023年11月25日 0 点赞 0 评论 251 浏览 评分:0.0
编写题解 1046: [编程入门]自定义函数之数字后移(有细致的讲解) 摘要:解题思路:注意事项:参考代码:# index,在列表某一确定位置插入确定的东西(insert() 方法在指定位置插入指定的值。),# pop() 函数用于移除列表中的一个元素(默认最后一个元素),并且…… 题解列表 2022年11月26日 0 点赞 0 评论 285 浏览 评分:0.0
自定义函数之数字后移 摘要:解题思路:利用pop()实现数字转移注意事项:参考代码:m=int(input())x=list(map(int,input().split()))n=int(input())for i in ran…… 题解列表 2022年11月10日 0 点赞 0 评论 226 浏览 评分:0.0
先移动后边的,在移动前面的 摘要:解题思路:我比较笨,用一个心的列表来装注意事项:感觉自己好傻,写的方法好复杂,但是还是能通过也挺好,看看别人的好像很简单,就是看不懂参考代码:def szhy(n,li,m): l=[] …… 题解列表 2022年05月23日 0 点赞 0 评论 234 浏览 评分:0.0
编写题解 1046: [编程入门]自定义函数之数字后移 摘要:解题思路:注意事项:参考代码:def yidong(): a = eval(input()) b = list(map(int,input().split())) c = e…… 题解列表 2022年05月08日 0 点赞 0 评论 302 浏览 评分:0.0