반응형
[codeforces] A. Beautiful Matrix
알고리즘(Python,Java)2019. 8. 26. 09:33[codeforces] A. Beautiful Matrix

problem You've got a 5 × 5 matrix, consisting of 24 zeroes and a single number one. Let's index the matrix rows by numbers from 1 to 5 from top to bottom, let's index the matrix columns by numbers from 1 to 5 from left to right. In one move, you are allowed to apply one of the two following transformations to the matrix: Swap two neighboring matrix rows, that is, rows with indexes i and i + 1 fo..

반응형
image