기출 문제 / 삼성 2020 First Half Afternoon Problem 1

Winner-Takes-All Monopoly

We are going to play a winner-takes-all monopoly game on an n×n grid. The game consists of m players, each occupying a position on the grid. The rules are as follows: