ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1001. Reverse Root

Work fine on my computer, returns "wrong answer" here (Python 3.3).
Posted by ipeterov 10 May 2014 16:54
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.