|
|
back to boardsolution The are three formules when first book = last book, when first book < last book and when last book < first book. 5 minutes to got it. its very simple; solution at o(1); AC 0,015 Re: solution The are three formules In fact we can solve it without if, just one (!) formula: abs( ( n2 - n1 ) * ( l1 + 2 * l2 ) - l1 ) 8-) Re: solution The are three formules Posted by S.77 7 Aug 2011 05:38 Queen Anne is dead, too. Re: solution The are three formules :D easy :D only 1 formul is needed i did same as dAFTc0d3r [Yaroslavl SU] :) |
|
|