Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

Bit problem CSES help
Difference between en2 and en3, changed 5 character(s)
I am trying to do this problem on CSES : [Link](https://cses.fi/problemset/task/1654/)↵
↵
I have done SOS dp and it's correct for type 1 and type 2 but WA on type 3↵
↵
In type i try to count the number of value cnt which x&y == 0 then the desired answer must be n — cnt↵
↵
I don't know why my approach is wrong, Can somebody point me out ?↵
 ↵
Here's my code : [Link](https://pastebin.com/ELqdNXSi) 

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English MeGaGame 2021-06-25 13:51:48 5
en2 English MeGaGame 2021-06-25 13:33:34 4
en1 English MeGaGame 2021-06-25 13:33:04 417 Initial revision (published)