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

I don't undesrstand where is a mistake. Who can help?
Posted by Danis 6 Nov 2023 18:42
lines = []
for line in stdin:
    for i in range(0, len(line.split())):
        lines.append(line.split()[i])
lines = [int(i) for i in lines]
lines_rev = list(reversed(lines))
numbers = []
for i in range(0, len(lines_rev)):
    numbers.append(lines_rev[i]**0.5)
for i in range(len(numbers)):
    print(f"{numbers[i]:.4f}")