[JAVA] 백준 10950번 A+B-3
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int count = scanner.nextInt(); for (int i = 1; i
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int count = scanner.nextInt(); for (int i = 1; i
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); Integer a = scanner.nextInt(); Integer res = 0; for (int i = 1; i
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); Integer a = scanner.nextInt(); System.out.println("|\\_/|\n" + "|q p| /}\n" + "( 0 )\"\"\"\\\n" + "|\"^\"` |\n" + "||_/=\\\\__|"); } }
public class Main { public static void main(String[] args) { System.out.println("\\ /\\\n" + " ) ( ')\n" + "( / )\n" + " \\(__)|"); } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); Integer a = scanner.nextInt(); Integer b = scanner.nextInt(); Integer c = scanner.nextInt(); System.out.println((a+b)%c); System.out.println(((a%c) + (b%c))%c); System.out.println((a*b)%c); System.out.println(((a%c)*(b%c))%c); } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); Integer a = scanner.nextInt(); if (a=90) { System.out.println("A"); } else if (a=80) { System.out.println("B"); } else if (a=70) { System.out.println("C"); } else if (a=60) { System.out.println("D"); } else { System.out.println("F"); } } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); Integer a = scanner.nextInt(); Integer b = scanner.nextInt(); System.out.println(a+b); System.out.println(a-b); System.out.println(a*b); System.out.println(a/b); System.out.println(a%b); } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); Integer a = scanner.nextInt(); Integer b = scanner.nextInt(); System.out.println(a*b); } }