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

×

What's the wrong with my code?????

Problem name :CHFINTRO My code in python 3.6 :

N, r = map(int, input().split()) for x in range(N): R = int(input()) if R > r: print("Good boi") else: print("Bad boi")

asked 19 Dec '18, 00:59

afraeim's gravatar image

0★afraeim
1
accept rate: 0%


The question clearly mentions atleast r, so your condition is wrong and it should br R >=r: print(“Good boi”)

link

answered 19 Dec '18, 01:16

akash19jain's gravatar image

3★akash19jain
726
accept rate: 12%

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:

×850
×678

question asked: 19 Dec '18, 00:59

question was seen: 75 times

last updated: 19 Dec '18, 01:16