#E. 练10.3 计算浮点数相除的余

    Type: RemoteJudge 1000ms 128MiB

练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.

说明

计算两个双精度浮点数aabb的相除的余数,aabb都是双精度浮点数。这里余数(rr)的定义是:a=k×b+ra=k×b+r,其中kk是整数,0rb0≤ r≤ b

输入格式

输入仅一行,包括两个双精度浮点数aabb

输出格式

输出也仅一行,a÷ba÷b的余数。

样例

73.263 0.9973
0.4601

提示

注意:输出时小数尾部没有多余的00,可以用下面这种格式:

double   x;
x = 1.33;
printf("%g", x);

编程基础班测试

Not Attended
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