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

Python Wrong answer. Первый раз на этом сайте. Что не правильно?
Posted by Altynbek 9 Nov 2018 09:19
intxt = input()

for i in intxt.split()[::-1]:
    print('%.4f' % int(i) ** 0.5)
Re: Python Wrong answer. Первый раз на этом сайте. Что не правильно?
Posted by decay 9 Nov 2018 15:00
IIRC, Python's input() reads only one line. You should probably do this for every line in sys.stdin. Well, rarely do I write solutions in Python so I might be wrong.