Algorithm/main.py

10 lines
85 B
Python

import io
import sys
sys.stdin = io.StringIO('''5
7
3 8
8 1 0
2 7 4 4
4 5 2 6 5''')