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

×

NZEC in problem Addition using python!!

Dont Know why but in External Contest : JNTUV Warmup 2015
I was not able to get AC in forth problem using Python!!!!!!!!! :(
Problem: Addition

My Solution:

a,b=map(int,raw_input().split()) print "Result =",a+b

Output: NZEC

Can some one point out my mistake? Please!!
Thank You

asked 19 Feb '15, 23:12

rishabhprsd7's gravatar image

2★rishabhprsd7
1.9k11242
accept rate: 14%

I also faced similar situation in java. My guess is that there maybe some non-integer character(s) present in the input or possible inputs are in different lines. I used BuffereredReader and then tokenizer to get the next tokens which is returning NZEC (link), but the exactly same solution applied using scanner.nextBigInteger() results into AC.

(19 Feb '15, 23:24) mediocoder3★
2

They should have corrected the sample test case!!!!!!

(19 Feb '15, 23:42) rishabhprsd72★

Take input one by one as they are in different lines.Read the announcement .In the question,they haven't corrected it.

link

answered 19 Feb '15, 23:37

arnab94's gravatar image

2★arnab94
561
accept rate: 50%

edited 19 Feb '15, 23:39

##################################

:(
Thanks bro..!

(19 Feb '15, 23:42) rishabhprsd72★

Yeah me too..

(19 Feb '15, 23:53) arnab942★
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:

×521
×422
×290

question asked: 19 Feb '15, 23:12

question was seen: 689 times

last updated: 19 Feb '15, 23:53