Лоскутов Игнат, 2538

1D arrays instead of 2D is a good idea actually