蓝桥杯算法提高VIP-前10名-题解(Python代码) 摘要:注意事项:注释的那一行用了map函数好像就不能对列表用len和sorted函数了,map函数是返回一个新的列表参考代码:n = int(input())# num_list = map(int, in…… 题解列表 2021年02月19日 0 点赞 0 评论 391 浏览 评分:0.0
Hello, world!-题解(Python代码) 摘要:注意事项:输入有一个回车,写两次input参考代码:num_list1 = map(int, input().strip().split())num_list2 = map(int, input().…… 题解列表 2021年02月18日 0 点赞 0 评论 508 浏览 评分:6.7
[编程入门]数字的处理与判断-题解(Python代码) 摘要:解题思路:字符串逆序输出可以采用索引的方法参考代码:string = input()print(len(string))for i in string: print(i, end=' &…… 题解列表 2021年02月18日 0 点赞 0 评论 382 浏览 评分:0.0
数据结构-表达式求值-eval(Python代码) 摘要:# Part 1 本题目 发现没人发python题解,我来发一下。 首先我将代码放出来: ```python import sys for line in sys.stdin: …… 题解列表 2021年02月18日 0 点赞 1 评论 1005 浏览 评分:9.9
[编程入门]三个数找最大值-题解(Python代码) 摘要:a, b, c = map(int, input().split())if a > b and a > c: print(a)elif b > a and b > c: print(b)e…… 题解列表 2021年02月18日 0 点赞 0 评论 574 浏览 评分:6.0
[竞赛入门]简单的a+b-题解(Python代码) 摘要:解题思路:注意事项:while True,让它能循环运行(自己就错在这里)参考代码:while True: a, b = map(int, input().split()) print(a…… 题解列表 2021年02月18日 0 点赞 0 评论 772 浏览 评分:5.5
[编程入门]利润计算-题解(Python代码) 摘要:I = int(input())if I <=100000: I = I*0.1 print(int(I))elif 100000< I <=200000: I = 100000*0…… 题解列表 2021年02月18日 0 点赞 1 评论 778 浏览 评分:5.3
[编程入门]分段函数求值-题解(Python代码) 摘要:x = float(input())if x < 1: print(int(x))elif 1 <= x < 10: print(int(2*x-1))else: print(int…… 题解列表 2021年02月18日 0 点赞 0 评论 578 浏览 评分:6.0
[编程入门]温度转换-题解(Python代码) 摘要:解题思路:注意事项:保留两位小数:"%.2f"%c参考代码:F = float(input())c = 5*(F-32)/9c = "%.2f"%cprint("c="+c)…… 题解列表 2021年02月18日 0 点赞 2 评论 2663 浏览 评分:9.7
[编程入门]三个数最大值-题解(Python代码) 摘要:参考代码:a,b,c = map(int,input().split())if a>b and a>c: print(a)elif b>a and b>c: print(b)else: …… 题解列表 2021年02月18日 0 点赞 2 评论 797 浏览 评分:6.0