problem C APAC practice 2017

Revision en1, by brucewayne123, 2016-07-07 07:17:14

https://code.google.com/codejam/contest/5254486/dashboard#s=p2 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.

History

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