problem C APAC practice 2017

Revision en1, by brucewayne123, 2016-07-07 07:17:14 i am unable to solve the large subtask of this problem.. i solved the small one using brute force.. please help me understand the logic behind this problem.. thanks.


  Rev. Lang. By When Δ Comment
en1 English brucewayne123 2016-07-07 07:17:14 258 Initial revision (published)