problem: https://www.codechef.com/LTIME85A/problems/COWSHEDS
I was able to solve it when the constraints are less, how to solve it efficiently?
help with a question in a recent contest at CODECHEF JUNE Lunchtime 2020
problem: https://www.codechef.com/LTIME85A/problems/COWSHEDS
I was able to solve it when the constraints are less, how to solve it efficiently?