본문 바로가기

Beakjoon&프로그래머스/Java139

[백준/Java] 15964번 이상한 기호 -Code import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); long a = scanner.nextInt(); long b = scanner.nextInt(); System.out.println((a + b) * (a - b)); } } 2022. 4. 13.
[백준/Java] 15962번 새로운 시작 -Code public class Main { public static void main(String[] args) { System.out.println("파이팅!!"); } } 2022. 4. 13.
[백준/Java] 15894번 수학은 체육과목 입니다 -Code import java.math.BigInteger; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); BigInteger n = scanner.nextBigInteger(); System.out.println(n.multiply(BigInteger.valueOf(4))); } } 2022. 4. 13.
[백준/Java] 15740번 A+B - 9 -Code import java.math.BigInteger; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); BigInteger a = scanner.nextBigInteger(); BigInteger b = scanner.nextBigInteger(); System.out.println(a.add(b)); } } 2022. 4. 13.
[백준/Java] 15733번 나는 누구인가 -Code public class Main { public static void main(String[] args) { System.out.println("I'm Sexy"); } } 2022. 4. 13.
[백준/Java] 15727번 조별과제를 하려는데 조장이 사라졌다 -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 cnt = 0; for (int i = 5; i > 0; i--){ cnt += n / i; n %= i; } System.out.println(cnt); } } 2022. 4. 13.