405217: GYM101848 A Modulo
Memory Limit:512 MB
Time Limit:1 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
A. Modulotime limit per test1 secondmemory limit per test512 megabytesinputstandard inputoutputstandard output
As a simple and boring task, you are asked to do modulo on floating numbers.
Given a, b, please calculate .
Notice that the modulo supported by some programming languages like C++, Java or Python might be not enough. You may have to implement a special version for this task.
InputTwo space-separated floating numbers a, b (0 < a, b ≤ 109). Exactly 9 digits are kept after the decimal point.
OutputPrint the answer with absolute or relative error not greater than 10 - 15.
ExamplesInput3.000000000 2.000000000Output
1.000000000Input
0.400000000 0.200000000Output
0