#29737: C++ solve


ryan980053@gmail.com (Ryan Yu)


unsigned int i = 0;
for(; i < 32; i++)
{
if(((n>>i)&1) == 0 )
break;
}
 
 
we use right shift operator to do so.
interesting fact that I TLE when I use cout/ cin rather than printf/ scanf...