My issue
x & 0 = 0
x | 0 = x
so sum is x;
so sol is simply 0 ,x for any x;
what am i doing wrong?
My code
#include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
int t;
cin>>t;
while(t--){
int x;
cin>>x;
cout<<0<<" "<<x<<endl;
}
}
Problem Link: ANDOR Problem - CodeChef