Sponsored
Use these hints if you're stuck. Try solving on your own first.
The constraints are small enough to consider every possible coordinate and calculate its quality.
Solve with full IDE support and test cases