I was trying this problem: Boboniu and Bit Operations ( https://codeforces.me/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.me/contest/1395/submission/109813483 (My approach). Please if someone could help, it would be very much appreciated.
the third test case (the one that your program is failing) is pretty short...