Java
-
[SWEA-1545] 거꾸로 출력해 보아요 - Java공부/SWEA 2022. 5. 31. 20:50
https://swexpertacademy.com/main/code/problem/problemDetail.do SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com SWEA 1545번 거꾸로 출력해 보아요 자바 풀이 난이도 D1 코드 import java.util.Scanner; public class swea1545 { public static void main(String args[]) throws Exception { Scanner sc = new Scanner(System.in); int T; T=sc.nextInt(); for(int test_case = T; test_case >=0 ; test_case..
-
[SWEA-2019] 더블더블 - Java공부/SWEA 2022. 5. 31. 19:29
https://swexpertacademy.com/main/code/problem/problemDetail.do SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com SWEA 2019번 더블더블 자바 풀이 난이도: D1 코드 import java.util.Scanner; public class swea2019 { public static void main(String args[]) throws Exception { Scanner sc = new Scanner(System.in); int T; T=sc.nextInt(); int num=1; for(int test_case = 0; test_case
-
[SWEA-1933] 간단한 N의 약수 - Java공부/SWEA 2022. 5. 31. 19:18
https://swexpertacademy.com/main/code/problem/problemDetail.do SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com 코드 import java.util.Scanner; public class swea1933 { public static void main(String args[]) throws Exception { Scanner sc = new Scanner(System.in); int num=sc.nextInt(); for(int i=1;i
-
[SWEA-1938] 아주 간단한 계산기 - Java공부/SWEA 2022. 5. 31. 19:13
https://swexpertacademy.com/main/code/problem/problemDetail.do SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com 코드 import java.util.Scanner; public class swea1938 { public static void main(String args[]) throws Exception { Scanner sc = new Scanner(System.in); int num1= sc.nextInt(); int num2=sc.nextInt(); System.out.println(num1+num2); System.out.println(num1-num2)..
-
[SWEA-2025] N줄 덧셈공부/SWEA 2022. 5. 31. 19:08
https://swexpertacademy.com/main/code/problem/problemDetail.do SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com 코드 import java.util.Scanner; public class swea2025 { public static void main(String args[]) throws Exception { Scanner sc = new Scanner(System.in); int T; T=sc.nextInt(); int num=0; for(int test_case = 1; test_case
-
[백준-15650] N과 M(2) - Java공부/백준 2022. 5. 30. 19:59
코드 import java.util.*; public class back15650 { public static int[] arr; public static int N,M; public static void main(String[] args) { Scanner scanner = new Scanner(System.in); N = scanner.nextInt(); M = scanner.nextInt(); arr = new int[M]; dfs(1,0); } public static void dfs(int at, int depth) { if (depth == M) { for (int val : arr) { System.out.print(val + " "); } System.out.println(); return..
-
[백준-15649] N과 M(1) - Java공부/백준 2022. 5. 30. 19:34
코드 import java.util.Scanner; public class back15649 { public static int[] arr; public static boolean[] visit; public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); int M = scanner.nextInt(); arr = new int[M]; visit = new boolean[N]; dfs(N, M, 0); } public static void dfs(int N, int M, int depth) { if (depth == M) { for (int val : arr) { Sys..
-
[SWEA-2027] 대각선 출력하기 - Java공부/SWEA 2022. 5. 30. 18:58
https://swexpertacademy.com/main/code/problem/problemDetail.do SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com SWEA 2027번 대각선 출력하기 자바 풀이 코드 public class swea2027 { public static void main(String args[]) throws Exception { System.out.println("#++++"); System.out.println("+#+++"); System.out.println("++#++"); System.out.println("+++#+"); System.out.println("++++#");..