Round 672 Div2

Revision en1, by I_lOVE_ROMAN, 2021-11-05 22:22:29

In this problem,I have come up with a solution that is only equal bit length numbers meet the condition of & operation >= XOR operation. That means number 2-3,4-7,8-15.... meet the conditions given in this problem.

Based on this idea, I write a solution, But this is giving always wrong answer. I am so frustrated and don't have a clue what is missing.

My code is

Can anybody please help me,what is wrong with my approach?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English I_lOVE_ROMAN 2021-11-05 22:22:29 562 Initial revision (published)