将原有列表拆分为两个列表,将其中一个列表更换次序直到与原来相同,与另外一个列表进行比较 摘要:解题思路:注意事项:参考代码:while True: a=list(map(int,input().split())) x=a[0] a=a[1:] xx=a[0:x] …… 题解列表 2022年04月06日 0 点赞 0 评论 307 浏览 评分:8.0
非常容易理解(自定义函数之字符串连接) 摘要:解题思路:注意事项:参考代码:def person(h,s):#输入的参数 h=h+s#拼接字符串 print(h) #类型都为字符串 h=input() s=inp…… 题解列表 2022年04月06日 0 点赞 0 评论 898 浏览 评分:9.9
最简单(自定义函数之字符串反转) 摘要:解题思路:注意事项:参考代码:错误思路:对字符串进行降序正确思路:对字符串进行逆序操作def person(n): print(n[::-1]) n=input() person(n)…… 题解列表 2022年04月06日 0 点赞 0 评论 448 浏览 评分:9.9
python-摆花摆花 摘要:解题思路:注意事项:参考代码:def f(n,m): num = [0] + [int(i) for i in input().strip().split()] dp = …… 题解列表 2022年04月06日 0 点赞 0 评论 304 浏览 评分:9.9
1行代码直接ac 摘要:解题思路:注意事项:参考代码 : while True: print(sum([int(i) for i in input()]))…… 题解列表 2022年04月06日 0 点赞 0 评论 266 浏览 评分:0.0
2609: 蓝桥杯2021年第十二届省赛真题-时间显示 摘要:解题思路:注意事项:参考代码:num=int(input()) t=num//1000 ss=t%60 mm=t%(60*60)//60 hh=t%(60*60*24)//(60*60) i…… 题解列表 2022年04月06日 0 点赞 0 评论 294 浏览 评分:0.0
利用列表求得最大值 摘要:解题思路:注意事项:参考代码:while True: a=list(map(int,input().split())) if a==[0]: break a=a[1:]…… 题解列表 2022年04月06日 0 点赞 0 评论 218 浏览 评分:0.0
题解 1563: 蓝桥杯算法提高VIP-质因数 摘要:````python n = int(input()) x = n s = '' while x > 1: for i in range(2,x+1): if x%…… 题解列表 2022年04月06日 0 点赞 0 评论 256 浏览 评分:0.0
超简短代码 摘要:解题思路:注意事项:参考代码:while True: a,b=map(int,input().split()) print(a+b) print()…… 题解列表 2022年04月06日 0 点赞 0 评论 278 浏览 评分:0.0
while循环的持续输入 摘要:解题思路:注意事项:参考代码:while True: a,b=map(int,input().split()) print(a+b)…… 题解列表 2022年04月06日 0 点赞 0 评论 262 浏览 评分:9.9