Help with this D2C problem on Bits.

Revision en1, by Ankush08, 2021-03-12 23:27:46

I was trying this problem: Boboniu and Bit Operations ( https://codeforces.net/problemset/problem/1395/C ) and in the solution, it suggested finding the answer by brute force that tries all 2^9 numbers. My doubt is, how come just choosing the minimum and of ai and bj not optimal? My solution: https://codeforces.net/contest/1395/submission/109813483 (My approach). Please if someone could help, it would be very much appreciated.

Tags #bitwiseor, #doubt, #help me

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Ankush08 2021-03-12 23:27:46 467 Initial revision (published)