2439 : 별 찍기 -2 import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); for (int i = 0; i < num; i++) { for (int j = 1; j 일상 2021.07.26
2438 : 별 찍기 - 1 import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); for (int i = 0; i < num; i++) { for (int j = 0; j 일상 2021.07.26
11022 : A + B - 8 import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int tc = sc.nextInt(); for (int i = 1; i 일상 2021.07.26
11021 : A + B - 7 import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int tc = sc.nextInt(); for (int i = 1; i 일상 2021.07.26
2742 : 기찍 N import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); int sum = 0; for (int i = num; i > 0 ; i--) { System.out.println(i); } } } 일상 2021.07.26
2741 : N 찍기 import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); int sum = 0; for (int i = 1; i 일상 2021.07.26
8393 : 합 import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); int sum = 0; for (int i = 1; i 일상 2021.07.26
10950 : A + B - 3 import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int tc = sc.nextInt(); for (int i = 0; i < tc; i++) { int num1 = sc.nextInt(); int num2 = sc.nextInt(); int sum = num1+num2; System.out.println(sum); } } } 일상 2021.07.26
2739 : 구구단 import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); int result = 0; for(int i =1 ; i 일상 2021.07.26
2884 : 알람 시계 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 < 45) { B = B - 45 + 60; A = A -1; if (A < 0) A = A + 24; } else B = B-45; System.out.println(A + " " + B); } } 일상 2021.07.23