I used 2 representation for writing same condition:
1)if(n%4==1)
cout<<“ALICE”<<"\n";
else
cout<<“BOB”<<"\n";
link:http://www.codechef.com/viewsolution/3935830
2)if((n>>1)&1)
cout<<“BOB”<<"\n";
else
cout<<“ALICE”<<"\n";
link:http://www.codechef.com/viewsolution/3935851
I don’t know why second one gives WA ?
Both are running fine on my system…
reply asap…