Skip to content

Instantly share code, notes, and snippets.

View advaittonpe's full-sized avatar

Advait Tonpe advaittonpe

View GitHub Profile
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()))