This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def main(): | |
import sys | |
def read_input(lines, index): | |
if index >= len(lines): | |
return [] | |
return [lines[index].strip()] + read_input(lines, index + 1) | |
def parse_numbers(line): | |
return list(map(int, line.strip().split())) |