problem: [link](https://www.codechef.com/PROS2019/problems/STOYS)↵
↵
Can someone please help me in this problem, i am not getting how to do this.↵
I think may be it is related to some dp problem or may be graphs. Can you please look into it.↵
↵
UPD: Contest is already over.↵
UPD2: [pdf link](https://drive.google.com/open?id=1I0pWsL1yiY93Csqq2MA7U-16hXJhuKjd)↵
↵
Thank You
↵
Can someone please help me in this problem, i am not getting how to do this.↵
I think may be it is related to some dp problem or may be graphs. Can you please look into it.↵
↵
UPD: Contest is already over.↵
UPD2: [pdf link](https://drive.google.com/open?id=1I0pWsL1yiY93Csqq2MA7U-16hXJhuKjd)↵
↵
Thank You