We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
int main()
{
int t,i,j;
scanf("%d",&t);
for(int a0 = 0; a0 < t; a0++)
{
int n;
int k;
int x,y=0;
scanf("%d %d",&n,&k);
for(i=n;i>0;--i)
for(j=n-1;j>1;--j)
{
x=(i & j);
{
if(x>y && xwhat is wrong in this program
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Bitwise AND
You are viewing a single comment's thread. Return to all comments →
include
include
include
include
include
include
include
int main() { int t,i,j; scanf("%d",&t); for(int a0 = 0; a0 < t; a0++) { int n; int k; int x,y=0; scanf("%d %d",&n,&k); for(i=n;i>0;--i) for(j=n-1;j>1;--j) { x=(i & j); { if(x>y && xwhat is wrong in this program