Пожалуйста, подпишитесь на официальный канал Codeforces в Telegram по ссылке https://t.me/codeforces_official. ×

SRM 649 Div 2 Medium

Правка en1, от justforlaugh, 2015-06-29 07:53:48

I have read the solution on the editorial for this problem but I dont understand how it came with this part on the code:

for (int x = 1; x < n; ++x) {
  for (int y = 0; y <= k - 1; ++y) {
    result = Math.min(result, Math.max(F(x, y), F(n - x, k - 1 - y)) + 1);
  }
}

Can anyone help me with this. Thanks!

Теги topcoder, srm #649

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский justforlaugh 2015-06-29 07:53:48 439 Initial revision (published)