#include<stdio.h>
int cond(int x,int y,int z)
{
return (((~(~x+1))&~y&z)|((~x+1)&(y&~z))|(y&z));
}

main()
{
int x,y,z;
scanf("%d %d %d",&x,&y,&z);
printf("%d",cond(x,y,z));
}
1
Contributor
0
Replies
5
Views
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.