牛客348665399号
牛客348665399号
全部文章
分类
归档
标签
去牛客网
登录
/
注册
牛客348665399号的博客
全部文章
(共14篇)
题解 | 求四位数各个数位之和
# 读取输入的四位整数 n = int(input()) # 分解各个数位 thousands = n // 1000 # 千位 hundreds = (n // 100) % 10 # 百位 tens = (n // 10) % 10 # 十位 units = n...
2025-06-26
0
17
题解 | 绕距
import math #读取输入的坐标 x1,y1= map(int,input().split()) x2,y2 = map(int,input().split()) # 计算横纵坐标差 dx = x1 - x2 dy = y1 - y2 # 计算曼哈顿距离 dM = abs(dx) + a...
2025-06-26
0
13
题解 | 绕距
import math #读取输入的坐标 x1,y1= map(int,input().split()) x2,y2 = map(int,input().split()) # 计算横纵坐标差 dx = x1 - x2 dy = y1 - y2 # 计算曼哈顿距离 dM = abs(dx) + a...
2025-06-26
0
13
题解 | 温标转换
x = float(input()) print((x-273.15)*1.8+32)
2025-06-26
0
11
首页
上一页
1
2
下一页
末页