牛客295740648号
牛客295740648号
全部文章
分类
归档
标签
去牛客网
登录
/
注册
牛客295740648号的博客
全部文章
(共7篇)
题解 | 成绩
import math import sys a, b, c = map(int, input().split()) s = a * 0.2 + b * 0.3 + c * 0.5 print(math.floor(s))
2025-07-01
0
24
题解 | 牛牛学立体
import sys 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-01
0
22
题解 | 计算机内存
import sys n = int(input()) total_memory = n * 1024 * 1024 print(total_memory//4)
2025-07-01
0
21
题解 | 时间转换
import sys seconds = int(input()) h = seconds // 3600 m = 0 if seconds % 3600 == 0 else seconds % 3600 // 60 s = seconds - 3600 * h - 60 * m print(...
2025-07-01
0
24
题解 | 求四位数各个数位之和
from functools import reduce import sys number = input() result = reduce(lambda x, y: x + y, map(int, number)) print(result)
2025-07-01
0
29
题解 | 反向输出一个四位数
import sys n = input() print(n[-1::-1])
2025-07-01
0
21
题解 | 平方根
import math import sys n = int(input()) print(math.floor(math.sqrt(n)))
2025-07-01
0
18