import java.util.Scanner;
public class Main{
public static void main (String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
if(b >= a){
System.out.println(1);
} else{
System.out.println(0);
}
}
}
import java.util.Scanner;
public class Main{
public static void main (String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
if(a != b){
System.out.println(1);
} else{
System.out.println(0);
}
}
}
import java.util.Scanner;
public class Main{
public static void main (String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
if (a == 1) {
System.out.println(0);
} else {
System.out.println(1);
}
}
}
import java.util.Scanner;
public class Main{
public static void main (String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
if (a == 1 && a == b) {
System.out.println(1);
} else {
System.out.println(0);
}
}
}
import java.util.Scanner;
public class Main{
public static void main (String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
if (a == 1 || b == 1) {
System.out.println(1);
} else {
System.out.println(0);
}
}
}
import java.util.Scanner;
public class Main{
public static void main (String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
if (a != b) {
System.out.println(1);
} else {
System.out.println(0);
}
}
}
import java.util.Scanner;
public class Main{
public static void main (String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
if (a == b) {
System.out.println(1);
} else {
System.out.println(0);
}
}
}
import java.util.Scanner;
public class Main{
public static void main (String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
if (a == 0 && b == 0) {
System.out.println(1);
} else {
System.out.println(0);
}
}
}
import java.util.Scanner;
public class Main{
public static void main (String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
System.out.println(~a);
}
}
십진수에 NOT 연산을 한 뒤, 이를 십진수로 출력시키는 문제다. 별다르게 문장을 쓰지는 않고,
a
를 출력시킬 때~
을 붙여주면 NOT 연산을 한 뒤 십진수로 출력이 된다. 비트연산.
import java.util.Scanner;
public class Main{
public static void main (String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
System.out.println(a & b);
}
}
비트연산. 이번에도 출력 시
a & b
를 해주면 연산한 뒤 십진수로 출력된다.