Cobb — 1554B

Правка en1, от SriniV, 2023-06-01 16:37:42

For Problem B, would the maximum $$$a_{i}$$$|$$$a_{j}$$$ = 2n-1 -> so f(n-1 , n) = n^2-n-k-2nk?

How would you solve f(i,n) > f(n-1,n) in that case?

Problem: 1554B - Cobb
Editorial : https://mirror.codeforces.com/blog/entry/93321

Теги help, bitwise

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский SriniV 2023-06-01 16:37:42 243 Initial revision (published)