Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

Help needed to solve this problem of DP + DSU

Правка en1, от 10pullupsin2019, 2016-06-21 19:49:40

I'm stuck with this problem

I've not found any blog or editorial on it and I couldn't understand the solution by reading a code. Can anyone please explain how to solve this problem in a few words?

Теги dp, dsu

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский 10pullupsin2019 2016-06-21 19:49:40 357 Initial revision (published)