PTA基础编程题目集 Python解法 7-1 厘米换算英尺英寸(int整型/四舍五入)
hys = int(input())
foot = int(hys//30.48)
inch = int(12*(hys/30.48-foot))
print(foot, inch)
PTA基础编程题目集 Python解法 7-1 厘米换算英尺英寸(int整型/四舍五入)
hys = int(input())
foot = int(hys//30.48)
inch = int(12*(hys/30.48-foot))
print(foot, inch)