Help with a problem

Правка en1, от bitencode, 2021-10-07 09:39:54

Problem Link : https://codeforces.me/problemset/problem/579/A

Initially unable to solve it I went through editorial, then found that it tells that answer is the count of set bits. Although I get the intuition, but can we prove that counting the bits would give the minimal answer? Please help, thanks in advance.

My Solution : https://codeforces.me/contest/579/submission/131036138

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский bitencode 2021-10-07 09:41:38 39
en1 Английский bitencode 2021-10-07 09:39:54 422 Initial revision (published)