|
|
back to boardWork fine on my computer, returns "wrong answer" here (Python 3.3). Here's my code: import math a = input() a = a.replace('\n', ' ') a = a.split() a.reverse() for i in a: print(math.sqrt(float(i))) Edited by author 10.05.2014 16:59 Re: Work fine on my computer, returns "wrong answer" here (Python 3.3). Posted by G 15 Feb 2015 23:30 What we are inputting is a stream of inputs, that may contain '\n'. On the other hand, input() cannot contain newline character. |
|
|