help with a question in a recent contest at CODECHEF JUNE Lunchtime 2020

Правка en2, от rishi7, 2020-06-29 19:44:23

problem: https://www.codechef.com/LTIME85A/problems/COWSHEDS

I was able to solve it when the constraints are less, how to solve it efficiently? Editorial for this question hasn't been released yet. So, it would be of great help if you could explain your approach and key concepts along with the solution.

Теги #dsu, #codechef

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский rishi7 2020-06-29 19:44:23 162
en1 Английский rishi7 2020-06-29 19:42:28 219 Initial revision (published)