Help for editorials of icpc amritapuri regionals 2017

Please give link for editorial of poetic word and nested candy boxes from icpc amritapuri regionals 2017.

https://vjudge.net/problem/1369932/origin

https://vjudge.net/problem/1369898/origin

If anyone knows logic behind how to solve it please give solution.

Editorial

Editorial 2

Refer to the above. As far as I remember, the logic behind the solutions were such: for poetic word, modelling it as max flow/min cut solves the problem.

For nested candy boxes, it was a compression problem where you had to note that 2^x can be greater than 10^{12} pretty quickly.

@vijju123 please try to help

I fear I cannot be of any help here :frowning: