[BangPypers] SPOJ : PALIN problem ...
nikhil.ikhar at gmail.com
Tue Nov 11 17:56:52 CET 2014
I see 2 potential problems.
2nd raw_input is surrounded by (), is it correct?
In if condition conversion to list is not required. Also instead of
converting to string u can take difference of number and reversed number.
U can use tools like http://www.pythontutor.com/visualize.html#mode=edit
For better understanding of logic.
On 11 Nov 2014 21:54, "Avinash" <avinash.s at paladion.net> wrote:
> Hi pals,
> I need littele help ..
> I made a program as per the given discription in the problem
> but when I submit it , Spoj is not accepting it .
> Can anyone tell me where I am doing wrong !
> here is the problem set:
> and here is my solution:
> if N>0:
> for i in range(0,N):
> if(int(IN)>=0 and int(IN)<1000000):
> print IN
> BangPypers mailing list
> BangPypers at python.org
More information about the BangPypers