본문 바로가기

자바137

[백준/Java] 10170번 NFC West vs North -Code public class Main { public static void main(String[] args) { System.out.println("NFC West W L T"); System.out.println("-----------------------"); System.out.println("Seattle 13 3 0"); System.out.println("San Francisco 12 4 0"); System.out.println("Arizona 10 6 0"); System.out.println("St. Louis 7 9 0"); System.out.println(); System.out.println("NFC North W L T"); System.out.println("------.. 2022. 4. 12.
[백준/Java] 9654번 나부 함대 데이터 -Code public class Main { public static void main(String[] args) { System.out.println("SHIP NAME CLASS DEPLOYMENT IN SERVICE"); System.out.println("N2 Bomber Heavy Fighter Limited 21 "); System.out.println("J-Type 327 Light Combat Unlimited 1 "); System.out.println("NX Cruiser Medium Fighter Limited 18 "); System.out.println("N1 Starfighter Medium Fighter Unlimited 25 "); System.out.println("Roy.. 2022. 4. 12.
[백준/Java] 9653번 스타워즈 로고 -Code public class Main { public static void main(String[] args) { System.out.println(" 8888888888 888 88888"); System.out.println(" 88 88 88 88 88 88"); System.out.println(" 8888 88 88 88 88888"); System.out.println(" 88 88 888888888 88 88"); System.out.println("88888888 88 88 88 88 888888"); System.out.println(); System.out.println("88 88 88 888 88888 888888"); System.out.println("88 88 88 88 .. 2022. 4. 12.
[백준/Java] 8871번 Zadanie próbne 2 -Code import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); System.out.println(String.format("%d %d", 2 * n + 2, 3 * n + 3)); } } 2022. 4. 11.
[백준/Java] 8437번 Julka -Code import java.math.BigInteger; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); BigInteger totalApple = sc.nextBigInteger(); BigInteger gap = sc.nextBigInteger(); BigInteger two = new BigInteger("2"); BigInteger avg = totalApple.subtract(gap).divide(two); System.out.println(avg.add(gap)); System.out.println(avg); } } 2022. 4. 11.
[백준/Java] 8370번 Plane -Code 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(); intk1 = sc.nextInt(); int k2 = sc.nextInt(); System.out.println(n1 * n2 + k1 * k2); } } 2022. 4. 11.