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);

6月23日1540

Not Claimed
Status
Done
Problem
16
Open Since
2024-6-23 0:00
Deadline
2024-6-30 23:59
Extension
24 hour(s)