zeneksilant

1.4.1

Oct 25th, 2019
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class main {
  3. public static void main(String[] args) {
  4. Scanner in = new Scanner(System.in);
  5. int A = in.nextInt();
  6. int i = in.nextInt();
  7. System.out.println(i != 0 ? A & -(1 << i) : A);
  8. }
  9. }
Add Comment
Please, Sign In to add comment