# 输入两个整数 x = int(input()) y = int(input()) # 计算整除的商和余数 quotient, remainder = divmod(x, y) # 计算非整除的结果,保留两位小数 non_divisible_result = round(x / y, 2) # 输出结果 print(quotient, remainder) print("{:.2f}".format(non_divisible_result))
# 输入两个整数 x = int(input()) y = int(input()) # 计算整除的商和余数 quotient, remainder = divmod(x, y) # 计算非整除的结果,保留两位小数 non_divisible_result = round(x / y, 2) # 输出结果 print(quotient, remainder) print("{:.2f}".format(non_divisible_result))