Back

CODEKATA PROBLEM ERROR

Created 3 years ago
155 Views
2 Comments
BIJUKM
@BIJUKM
BIJUKM
@BIJUKMProfile is locked. Login

PROBLEM:

Given length L and breadth B of a farm, print the area of the farm upto 5 decimal decimals.
Sample Testcase :
INPUT
1.626 2.31
OUTPUT
3.75606

My Code:

n=list(map(float,input().split()))

x=n[0]*n[1]

y=round(x,5)

z=int(y)

if(z==y):

print(z)

else:

print(y)

Failed Testcase Status:
>>> error
Input:
2.5432 6.7654
Expected Output:
17.20576
Actual Output:
17.20577
Comments (2)
Please login to comment.