코드업 기초 100제 (51~60)
1051
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n1 = sc.nextInt();
int n2 = sc.nextInt();
int ret;
if(n1 <= n2){
ret = 1;
}else{
ret = 0;
}
System.out.print(ret);
}
}
1052
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n1 = sc.nextInt();
int n2 = sc.nextInt();
int ret;
if(n1 != n2){
ret = 1;
}else{
ret = 0;
}
System.out.print(ret);
}
}
1053
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n1 = sc.nextInt();
if(n1 == 0) {
System.out.print(1);
}else{
System.out.print(0);
}
}
}
1054
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n1 = sc.nextInt();
int n2 = sc.nextInt();
if(n1 == 1 & n2 == 1) {
System.out.print(1);
}else{
System.out.print(0);
}
}
}
1055
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n1 = sc.nextInt();
int n2 = sc.nextInt();
if(n1 == 1 | n2 == 1) {
System.out.print(1);
}else{
System.out.print(0);
}
}
}
1056
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n1 = sc.nextInt();
int n2 = sc.nextInt();
if(n1 != n2 ) {
System.out.print(1);
}else{
System.out.print(0);
}
}
}
1057
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n1 = sc.nextInt();
int n2 = sc.nextInt();
if(n1 == n2 ) {
System.out.print(1);
}else{
System.out.print(0);
}
}
}
1058
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n1 = sc.nextInt();
int n2 = sc.nextInt();
if(n1 == 0 & n2 == 0 ) {
System.out.print(1);
}else{
System.out.print(0);
}
}
}
1059
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n1 = sc.nextInt();
System.out.print(~n1);
}
}
1060
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n1 = sc.nextInt();
int n2 = sc.nextInt();
System.out.print(n1&n2);
}
}
Author And Source
이 문제에 관하여(코드업 기초 100제 (51~60)), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://velog.io/@yeomyuri42/코드업-기초-100제-5160저자 귀속: 원작자 정보가 원작자 URL에 포함되어 있으며 저작권은 원작자 소유입니다.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)