SP7559 HATEAM - E - Football Team

Description

**Football Team** A football team will be standing in rows to have a photograph taken. The location of each player will be given by two integers x and y, where y gives the number of the row, and x gives the distance of the player from the left edge of the row. The x values will be all different. In order to make the photo more interesting, you're going to make sure players who are near each other have shirts of different colors. To do this, you set the following rule: For each player P: - The closest player to the right of P in the same row, if there is such a player, must have a different shirt color. - The closest player to the right of P in the previous row, if there is such a player, must have a different shirt color. - The closest player to the right of P in the next row, if there is such a player, must have a different shirt color. More formally, if there is a player at (x1,y1) and (x2,y2), where x1

Input Format

N/A

Output Format

N/A