1086——————A+B for Input-Output Practice (II) 摘要:题目:1086: A+B for Input-Output Practice (II) **题目描述** The first line integer means the number of in…… 题解列表 2022年08月20日 0 点赞 0 评论 449 浏览 评分:0.0
1085——————A+B for Input-Output Practice (I) 摘要:题目:1085: A+B for Input-Output Practice (I) **题目描述** Your task is to Calculate a + b. Too easy?! Of…… 题解列表 2022年08月20日 0 点赞 0 评论 417 浏览 评分:0.0
2576——————解码 摘要: n = input() #输入字符串 H3el5o2 s = '' #建空字符串 because输入是字符串 for i in range(len(n…… 题解列表 2022年08月20日 0 点赞 0 评论 420 浏览 评分:9.9
就循环判断呗 摘要:解题思路:注意事项:参考代码:while True: n=int(input()) if n!=0: &nbs 题解列表 2022年08月16日 0 点赞 0 评论 380 浏览 评分:9.9
数组的距离-Python 摘要:解题思路: 没有技巧,直接全部算出来取最小哈哈,说下代码思路 以a1 a2 a3 a4 a5 b1 b2 b3 b4 b5 为例(ai, bi, i=1,2,3,4,5) …… 题解列表 2022年08月14日 0 点赞 1 评论 326 浏览 评分:9.9
没什么特别的 摘要:解题思路:注意事项:参考代码:a,n=map(int,input().split()) s=0 b=str(a) for i in range(n): s+=int(b) a…… 题解列表 2022年08月13日 0 点赞 0 评论 324 浏览 评分:9.9
思路简单, 摘要:解题思路:注意事项:参考代码n=int(input()) c=0 a=1 for i in range(1,n+1): for j in range(1,i+1): …… 题解列表 2022年08月13日 0 点赞 0 评论 326 浏览 评分:9.9
两种方式表示列表最后一个元素 摘要:解题思路:注意事项:参考代码:方法一:a=list(map(int,input().split())) b=len(a) while a[b-1]!=-1: a.extend(list(…… 题解列表 2022年08月13日 0 点赞 0 评论 418 浏览 评分:9.9
混个经验值 摘要:解题思路:注意事项:参考代码:a=list(map(int,input().split())) a=sorted(a,reverse=True) for i in a: print(i,…… 题解列表 2022年08月12日 0 点赞 0 评论 395 浏览 评分:9.9
混个经验值 摘要:解题思路:注意事项:参考代码:a=list(map(int,input().split())) a=sorted(a,reverse=False) for i in a: print(i…… 题解列表 2022年08月12日 0 点赞 0 评论 471 浏览 评分:9.9