Beakjoon&프로그래머스/Java139 [백준/Java] 17496번 스타후르츠 -Code import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int t = scanner.nextInt(); int c = scanner.nextInt(); int p = scanner.nextInt(); System.out.println((n - 1) / t * c * p); } } 2022. 4. 14. [백준/Java] 17295번 엔드게임 스포일러 -Code public class Main { public static void main(String[] args) { System.out.println("Avengers: Endgame"); } } 2022. 4. 14. [백준/Java] 17256번 달달함이 넘쳐흘러 -Code import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int ax = scanner.nextInt(); int ay = scanner.nextInt(); int az = scanner.nextInt(); int cx = scanner.nextInt(); int cy = scanner.nextInt(); int cz = scanner.nextInt(); System.out.println(String.format("%d %d %d", cx - az, cy / ay, cz - ax)); } } 2022. 4. 14. [백준/Java] 16430번 제리와 톰 -Code import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int a = scanner.nextInt(); int b = scanner.nextInt(); System.out.println(String.format("%d %d", b - a, b)); } } 2022. 4. 14. [백준/Java] 16394번 홍익대학교 -Code import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); long year = scanner.nextInt(); System.out.println(year - 1946); } } 2022. 4. 14. [백준/Java] 16170번 오늘의 날짜는? -Code public class Main { public static void main(String[] args) { System.out.println(2022); System.out.println(4); System.out.println(13); } } 2022. 4. 13. 이전 1 ··· 12 13 14 15 16 17 18 ··· 24 다음