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!!! :frowning:

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

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

1 Like

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.

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

:frowning:


Thanks bro…!

They should have corrected the sample test case!!!

2 Likes

Yeah me too…