1004: A/B Problem

内存限制:128 MB 时间限制:1.000 S 标准输入输出
题目类型:传统 评测方式:Special Judge 上传者:
提交:1717 通过:804


Write a program which reads two integers a and b, and calculates the following values:

a ÷ b: d (in integer)

remainder of a ÷ b: r (in integer)

a ÷ b: f (in real number)


Two integers a and b are given in a line.


Print d, r and f separated by a space in a line. For f, the output should not contain an absolute error greater than 10-5.

输入样例 复制

3 2

输出样例 复制

1 1 1.50000


1 ≤ a, b ≤ 10^9