练10.3 计算浮点数相除的余
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
说明
计算两个双精度浮点数和的相除的余数,和都是双精度浮点数。这里余数()的定义是:,其中是整数,。
输入格式
输入仅一行,包括两个双精度浮点数和。
输出格式
输出也仅一行,的余数。
样例
73.263 0.9973
0.4601
提示
注意:输出时小数尾部没有多余的,可以用下面这种格式:
double x;
x = 1.33;
printf("%g", x);
编程基础班测试
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 8
- Start at
- 2023-9-10 13:00
- End at
- 2023-9-10 14:15
- Duration
- 1.3 hour(s)
- Host
- Partic.
- 9