## Codeforces Round #756 Robot and Candies Solution (Java/C++)

Solution: First of all, we can immediately find that for the grid (x, y), no matter how the robot moves, the parity of the grid x+y is always the same. So it is natural to solve for odd and even numbers separately.…