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

×

Help with Python

Can anyone help me how to code this problem in Python. I went through the python submissions but when i am trying those codes in my Ubuntu PC they are not working.

My Solution : https://www.codechef.com/viewsolution/9181886

asked 16 Jan '16, 13:15

apptica's gravatar image

5★apptica
939210
accept rate: 17%


instead of raw_input() function use only input() or use python 2.7

link

answered 16 Jan '16, 22:59

archit910's gravatar image

2★archit910
820212
accept rate: 3%

You are using Python 3 which does not have any function raw_input. Either use python 2 or use only input(): https://www.codechef.com/viewsolution/9182654

link

answered 16 Jan '16, 16:52

vsp4's gravatar image

6★vsp4
1.2k138
accept rate: 28%

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:

×2,698
×510
×249
×15

question asked: 16 Jan '16, 13:15

question was seen: 918 times

last updated: 16 Jan '16, 22:59