Ikaros-1808:[编程基础]输入输出练习之精度控制1 Python解决 摘要:解题思路:使用float、round函数即可参考代码:# number保存输入的浮点数值number = float(input())# 用round来保留三位小数点print(round(numbe…… 题解列表 2021年09月18日 0 点赞 0 评论 497 浏览 评分:2.0
Ikaros-1806:[编程基础]输入输出练习之第二个数字 Python解决 摘要:解题思路:使用列表和map函数即可参考代码:number = list(map(int,input().split()))print(number[1])…… 题解列表 2021年09月18日 0 点赞 0 评论 1183 浏览 评分:7.3
Ikaros-1954:话费计算 摘要:解题思路:简单的乘一下再加上保留1位数即可参考代码:number = int(input())print(round(50 + number * 0.4,1))…… 题解列表 2021年09月18日 0 点赞 0 评论 343 浏览 评分:0.0
Ikaros-1952: 求长方形面积 Python解决 摘要:解题思路:使用format、map函数参考代码:number = list(map(int,input().split()))C = int((number[0] + number[1]) * 2)S…… 题解列表 2021年09月18日 0 点赞 0 评论 661 浏览 评分:0.0
Ikaros-1669:求圆的面积 Python解决 摘要:解题思路: 直接干就行注意事项:不能使用**,不然会出错(评判的时候)参考代码:r = float(input())pi = 3.1415926S = pi * r * rprint(round…… 题解列表 2021年09月18日 0 点赞 0 评论 468 浏览 评分:0.0
Ikaros-P1000 Python解决 摘要:解题思路: 使用map函数然后输入即可参考代码:number = list(map(int,input().split()))print(number[0] + number[1])…… 题解列表 2021年09月16日 0 点赞 1 评论 1222 浏览 评分:9.9
十二届时间显示题解 摘要:n=int(input())s=n//1000 t=s//3600zt=t%24m=s-t*3600zm=m//60zs=m-zm*60if zt<=10: zt="0"+str(zt) …… 题解列表 2021年09月15日 0 点赞 0 评论 1299 浏览 评分:9.9
C语言训练-尼科彻斯定理题解 摘要:解题思路:注意事项:参考代码:x=int(input())m=x**3k=x//2t=str(x)+"*"+str(x)+"*"+str(x)+"="+str(m)+"="if x%2!=0: f…… 题解列表 2021年09月12日 0 点赞 0 评论 567 浏览 评分:9.9
简单的a+b题解 摘要:解题思路:注意事项:参考代码:while True:#while True 语句中一定要有结束该循环的break语句,否则会一直循环下去的 try: #Python 中,用try except…… 题解列表 2021年09月12日 0 点赞 0 评论 2245 浏览 评分:8.8
使用map和list构建列表求平均值 摘要:解题思路:注意事项:参考代码:lista = list(map(int,input().split(" ")))avg = sum(lista)/len(lista)count = 0for i in…… 题解列表 2021年09月09日 0 点赞 1 评论 998 浏览 评分:9.9