LI005
LI005
全部文章
分类
归档
标签
去牛客网
登录
/
注册
LI005的博客
全部文章
(共18篇)
题解 | 牛牛学立体
a, b, c = map(int, input().split()) S = 2 * (a*b + b*c + c*a) V = a*b*c print(f"{S}\n{V}")
2025-07-13
0
11
题解 | 计算机内存
MB = int(input()) KB = MB * 1024 B = KB * 1024 print(B // 4)
2025-07-13
0
14
题解 | 时间转换
t = int(input()) h = t // 3600 m = t % 3600 // 60 s = t % 3600 % 60 print(h,m,s)
2025-07-13
0
13
题解 | 求四位数各个数位之和
n = int(input()) d1 = n % 10 d2 = n // 10 % 10 d3 = n // 100 % 10 d4 = n //1000 % 10 print(d1 + d2 + d3 + d4)
2025-07-13
0
18
题解 | 绕距
import math x1, y1 = map(int, input().split()) x2, y2 = map(int, input().split()) dx = abs(x1 - x2) dy = abs(y1 - y2) dm = dx + dy de = math.sqrt(d...
2025-07-13
0
13
题解 | 温标转换
print(f"{(float(input()) - 273.15) * 1.8 + 32:.9f}")
2025-07-13
0
17
题解 | 反向输出一个四位数
print(input()[::-1])
2025-07-13
0
16
题解 | 平方根
import math print(math.floor(math.sqrt(int(input()))))
2025-07-13
0
20
题解 | 整数的十位
print(abs(int(input())) // 10 % 10)
2025-07-13
0
19
题解 | 整数的个位
print (abs(int(input())) % 10)
2025-07-13
0
17
首页
上一页
1
2
下一页
末页