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

×

please check my code CHEFA

This question is marked "community wiki".

asked 28 Sep '14, 16:54

chashmeetsingh's gravatar image

3★chashmeetsingh
521210
accept rate: 7%

edited 29 Sep '14, 13:12

admin's gravatar image

0★admin ♦♦
19.8k350498541


In python, you cannot take input for a list in that way. Change that part of code to

str = raw_input()
a = map(int,str.split())

now a is your list.

or clubbing both the statements,

a = map(int,raw_input().split())

Edited code : link1

link

answered 28 Sep '14, 18:30

vinayawsm's gravatar image

4★vinayawsm
1.9k21430
accept rate: 24%

thanks a lot for this help

(28 Sep '14, 21:20) chashmeetsingh3★
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:

×46
×8

question asked: 28 Sep '14, 16:54

question was seen: 576 times

last updated: 29 Sep '14, 13:12