You are not logged in. Please login at www.codechef.com to post your questions!

×

ATM python wrong output

whats wrong with my code?

m,n=input().split() m,n=int(m),float(n)

if m%5==0 and (m+0.5)<n and="" m="">0 and n>=0: a=n-m-(0.5) print("{:.2f}".format(a)) else: print("{:.2f}".format(n))

asked 09 Sep '17, 11:26

hemaabhijit007's gravatar image

2★hemaabhijit007
11
accept rate: 0%


put this in your checking condition (m+.5)<=n

link

answered 09 Sep '17, 11:31

upenkumar31's gravatar image

2★upenkumar31
423
accept rate: 22%

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×849
×267
×190

question asked: 09 Sep '17, 11:26

question was seen: 258 times

last updated: 09 Sep '17, 11:31