You are viewing a single comment's thread. Return to all comments →
🐍 If you want to solve in your favorite IDE - you can copy """Sample Input""" there and make 2D array from it
sample_input = """0 -4 -6 0 -7 -6 -1 -2 -6 -8 -3 -1 -8 -4 -2 -8 -8 -6 -3 -1 -2 -5 -7 -4 -3 -5 -3 -6 -6 -6 -3 -6 0 -8 -6 -7"""
arr = [list(map(int, line.split())) for line in inpuT.split("\n")]
Seems like cookies are disabled on this browser, please enable them to open this website
Day 11: 2D Arrays
You are viewing a single comment's thread. Return to all comments →
🐍 If you want to solve in your favorite IDE - you can copy """Sample Input""" there and make 2D array from it
sample_input = """0 -4 -6 0 -7 -6 -1 -2 -6 -8 -3 -1 -8 -4 -2 -8 -8 -6 -3 -1 -2 -5 -7 -4 -3 -5 -3 -6 -6 -6 -3 -6 0 -8 -6 -7"""
arr = [list(map(int, line.split())) for line in inpuT.split("\n")]