백준알고리즘 (19) 썸네일형 리스트형 2530번: 인공지능 시계 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(); int C = sc.nextInt(); int D = sc.nextInt(); System.out.println((A+(B+(C+D)/60)/60)%24+" "+(B+(C+D)/60)%60+" "+(C+D)%60); } } 2480번: 주사위 세개 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(); int c = sc.nextInt(); int sum = 0; if(a==b && a==c && b==c) { sum = 10000 + a * 1000; } else if(a==b || a==c ) { sum = 1000 + a * 100; } else if (b==c) { sum = 1000 + b * 100; } else { sum = Math.max(a, Math.max(b, c)) * 100; } Sy.. 2440번: 별 찍기 -3 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); for (int i=0; i < n; i++) { for (int j=i + 1; j 2439번: 별 찍기 -2 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); for (int i=1; i 1264번: 모음의 개수 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while(true){ String word = sc.nextLine(); int cnt = 0; if(word.equals("#")) break; for(int i=0;i 2741번: N 찍기 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); for(int i=1; i 2739번: 구구단 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); for(int i =1; i 2738번: 행렬 덧셈 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int M = sc.nextInt(); int[][] arr = new int[N][M]; for (int i = 0; i < 2; i++) { for (int j = 0; j < N; j++) { for (int j2 = 0; j2 < M; j2++) { arr[j][j2] += sc.nextInt(); } } } for (int i = 0; i < N; i++) { for (int j = 0; j < M; j++) { System.out.pri.. 이전 1 2 3 다음