#include<stdio.h>
int main()
{
    int n,i,j,temp,temp1;
    scanf("%d %d %d",&n,&i,&j);
    temp=(1<<i)|(1<<j);
    temp1=n^temp;
    if(((temp1&temp)==temp)||((temp1&temp)==0))                // CHECKING
IF TWO BITS ARE EQUAL
                                           printf("%d\n",n);
    else
        printf("%d\n",temp1);
    return 0;
}

-- 
Thanks and Regards
*Devansh Gupta*
*B.Tech Third Year*
*MNNIT, Allahabad*

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to