could anyone help me understand the solution of this problem http://poj.org/problem?id=2096
could anyone help me understand the solution of this problem http://poj.org/problem?id=2096
if there is anyone solve this problem please comment with the link of solution https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=698