You are viewing a single comment's thread. Return to all comments →
@purushoth it is because you have not converted your list of strings to int
b = (raw_input().split(" "))
b = map(int,raw_input().split())
also note that .split() defaults to splitting on spaces e.g. " "