Medium
Temporary Decimal Precision
Read a precision p and two numbers a and b. Print
Decimal(a) / Decimal(b) computed inside with decimal.localcontext() as ctx: ctx.prec = p, then the same division outside the block with the default precision cut to its first 12 characters.Input
p, then a and b.
Output
Two lines.
Sample 1
Input
4 1 3
Output
0.3333 0.3333333333
Sample 2
Input
2 10 7
Output
1.4 1.4285714285
Output appears here