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

How can the program recognize when there aren´t more inputs (python3)?
Posted by HUC_EDDIE 29 Nov 2023 07:39
How can the program recognize when there aren´t more inputs if use python3 ?
my program:
nums = [int(x) for x in input().split()]
nums.reverse()
for num in nums:
    print('{:.4f}'.format(num ** 0.5))

What's wrong? anyone can tell me ,pls

Edited by author 29.11.2023 07:42

Edited by author 29.11.2023 07:43
Re: How can the program recognize when there aren´t more inputs (python3)?
Posted by Szenti 9 Jan 2024 02:50
The answer to your question is in the FAQ, page How to write Python solutions.