魏老四OJ
Home
ProblemSet
Source/Category
Contest
题单
Status
Ranklist
F.A.Qs
Login
2145: 求小数结果
Memory Limit:128 MB
Time Limit:1.000 S
:
Creator:
Submit:3
Solved:3
Submit
Statistics
Description
计算两个双精度浮点数a和b的相除的余数, a和b都是双精度浮点数; 这里余数(r)的定义是: a = k * b + r, 其中k是整数, 0 <= r <= b;
Input
输入仅一行, 包括两个双精度浮点数a和b
Output
输出也仅一行, a ÷ b的余数;
Sample Input
73.263 0.9973
Sample Output
0.4601
Source/Category
基础问题
Submit
Statistics