|
|
back to boardI don't understand what I'm doing wrong anymore. Posted by lain 24 Jul 2026 12:38 import sys, math numbers = [] empty_lines = 0 for line in sys.stdin: line = line.strip() if line == "": empty_lines += 1 if empty_lines == 2: break else: empty_lines = 0 numbers.extend(line.split()) for num in reversed(numbers): print(f"{math.sqrt(int(num)):.4f}") |
|
|