알고리즘 - SWEA/D3

    [SW expert Academy] SWEA 3282번 0/1 Knapsack 자바(Java)

    [D3] 0/1 Knapsack - 3282 문제 링크 성능 요약 메모리: 31,384 KB, 시간: 171 ms, 코드길이: 1,024 Bytes 제출 일자 2023-11-09 10:36 출처: SW Expert Academy, https://swexpertacademy.com/main/code/problem/problemList.do import java.util.Scanner; class Solution { public static void main(String args[]) throws Exception { Scanner sc = new Scanner(System.in); int T = sc.nextInt(); for(int tc = 1; tc

    [SW expert Academy] SWEA 7985번 Rooted Binary Tree 재구성 자바(Java)

    [D3] Rooted Binary Tree 재구성 - 7985 문제 링크 성능 요약 메모리: 31,368 KB, 시간: 178 ms, 코드길이: 1,205 Bytes 제출 일자 2023-11-09 09:50 출처: SW Expert Academy, https://swexpertacademy.com/main/code/problem/problemList.do import java.util.Scanner; class Solution { static int [] answer; static int[] tree; static int n,k; public static void main(String args[]) throws Exception { Scanner sc = new Scanner(System.in); int..

    [SW expert Academy] SWEA 5607번 조합 자바(Java)

    [D3] [Professional] 조합 - 5607 문제 링크 성능 요약 메모리: 21,308 KB, 시간: 281 ms, 코드길이: 1,009 Bytes 제출 일자 2023-11-08 11:12 출처: SW Expert Academy, https://swexpertacademy.com/main/code/problem/problemList.do import java.util.Scanner; class Solution{ static final long div = 1234567891L; public static void main(String args[]) throws Exception { Scanner sc = new Scanner(System.in); int T= sc.nextInt(); for(int ..

    [SW expert Academy] SWEA 4676번 늘어지는 소리 만들기 자바(Java)

    [D3] 늘어지는 소리 만들기 - 4676 문제 링크 성능 요약 메모리: 104,692 KB, 시간: 384 ms, 코드길이: 539 Bytes 제출 일자 2023-11-08 00:52 출처: SW Expert Academy, https://swexpertacademy.com/main/code/problem/problemList.do import java.util.Scanner; class Solution { public static void main(String args[]) throws Exception { Scanner sc = new Scanner(System.in); int T = sc.nextInt(); for(int tc = 1; tc

    [SW expert Academy] SWEA 1240번 단순 2진 암호코드 자바(Java)

    [D3] [S/W 문제해결 응용] 1일차 - 단순 2진 암호코드 - 1240 문제 링크 성능 요약 메모리: 21,268 KB, 시간: 151 ms, 코드길이: 1,540 Bytes 제출 일자 2023-11-08 00:39 출처: SW Expert Academy, https://swexpertacademy.com/main/code/problem/problemList.do import java.util.*; class Solution{ public static void main(String args[]) throws Exception { Scanner sc = new Scanner(System.in); int T = sc.nextInt(); HashMap map = new HashMap(); String[]..

    [SW expert Academy] SWEA 4615번 재미있는 오셀로 게임 자바(Java)

    [D3] 재미있는 오셀로 게임 - 4615 문제 링크 성능 요약 메모리: 29,792 KB, 시간: 159 ms, 코드길이: 1,943 Bytes 제출 일자 2023-11-07 22:41 출처: SW Expert Academy, https://swexpertacademy.com/main/code/problem/problemList.do import java.util.Scanner; class Solution { public static void main(String args[]) throws Exception { Scanner sc = new Scanner(System.in); // 상,하,좌,우,좌상,좌하,우위,우하 int[] dirX = {-1,1,0,0,-1,1,-1,1}; int[] dirY ={..

    [SW expert Academy] SWEA 1244번 최대 상금 자바(Java)

    [D3] [S/W 문제해결 응용] 2일차 - 최대 상금 - 1244 문제 링크 성능 요약 메모리: 107,660 KB, 시간: 8,832 ms, 코드길이: 1,063 Bytes 제출 일자 2023-11-07 13:27 출처: SW Expert Academy, https://swexpertacademy.com/main/code/problem/problemList.do import java.util.*; import java.io.*; class Solution { static char[] nums; static int limitCount; static int result; public static void main(String args[]) throws Exception{ Scanner sc = new S..

    [SW expert Academy] SWEA 9658번 유효숫자 표기 자바(Java)

    [D3] 유효숫자 표기 - 9658 문제 링크 성능 요약 메모리: 35,556 KB, 시간: 221 ms, 코드길이: 686 Bytes 제출 일자 2023-11-07 11:11 출처: SW Expert Academy, https://swexpertacademy.com/main/code/problem/problemList.do import java.util.Scanner; class Solution { public static void main(String args[]) throws Exception { Scanner sc = new Scanner(System.in); int T=sc.nextInt(); for(int tc = 1; tc