| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 1024 MB | 15 | 6 | 6 | 40.000% |
The cows have revised their game of leapcow. They now play in the middle of a huge pasture upon which they have marked a grid that bears a remarkable resemblance to a chessboard of N rows and N columns (3 ≤ N ≤ 365).
Here's how they set up the board for the new leapcow game:
Each of the remaining cows then tries to maximize her score in the game.
Each square visited by the 'knight' earns the competitor a single point. The cow with the most points wins the game.
Help the cows figure out the best possible way to play the game.
4 1 3 2 16 4 10 6 7 8 11 5 12 9 13 14 15
7 2 4 5 9 10 12 13