HDU 1196 ( Lowest Bit )


// java       java      
Problem : 1196 ( Lowest Bit )     Judge Status : Accepted
RunId : 5706789    Language : Java    Author : ssun
Code Render Status : Rendered By HDOJ Java Code Render Version 0.01 Beta

import java.math.*;
import java.util.*;

public class Main
{
    public static void main(String args[])
    {
        Scanner cin = new Scanner(System.in);
        while(cin.hasNext()){
            int m = cin.nextInt();
            if(m==0) break;
            System.out.println(Integer.lowestOneBit(m));
        }
        
    }
}