알고리즘 - SWEA/D3

    [SW expert Academy] SWEA 8016번 홀수 피라미드 자바(Java)

    [D3] 홀수 피라미드 - 8016 문제 링크 성능 요약 메모리: 19,712 KB, 시간: 130 ms, 코드길이: 347 Bytes 제출 일자 2023-10-30 21:03 출처: 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 3750번 Digit sum 자바(Java)

    [D3] Digit sum - 3750 문제 링크 성능 요약 메모리: 107,000 KB, 시간: 653 ms, 코드길이: 520 Bytes 제출 일자 2023-10-30 19:58 출처: 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 5456번 의석이의 세로로 말해요 자바(Java)

    [D3] 의석이의 세로로 말해요 - 5356 문제 링크 성능 요약 메모리: 23,804 KB, 시간: 164 ms, 코드길이: 748 Bytes 제출 일자 2023-10-30 19:47 출처: 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 i) System.out.print(strs[j].cha..

    [SW expert Academy] SWEA 1234번 10일차 자바(Java)

    [D3] [S/W 문제해결 기본] 10일차 - 비밀번호 - 1234 문제 링크 성능 요약 메모리: 20,944 KB, 시간: 128 ms, 코드길이: 714 Bytes 제출 일자 2023-10-30 00:33 출처: 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); for(int tc = 1; tc

    [SW expert Academy] SWEA 3499번 퍼펙트 셔플 자바(Java)

    [D3] 퍼펙트 셔플 - 3499 문제 링크 성능 요약 메모리: 35,956 KB, 시간: 179 ms, 코드길이: 879 Bytes 제출 일자 2023-10-30 00:14 출처: 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(); for(int tc = 1; tc

    [SW expert Academy] SWEA 3307번 최장 증가 부분 수열 자바(Java)

    [D3] 최장 증가 부분 수열 - 3307 문제 링크 성능 요약 메모리: 36,952 KB, 시간: 219 ms, 코드길이: 799 Bytes 제출 일자 2023-10-29 23:47 출처: 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 1873번 상호의 배틀필드 자바(Java)

    [D3] 상호의 배틀필드 - 1873 문제 링크 성능 요약 메모리: 28,896 KB, 시간: 181 ms, 코드길이: 3,023 Bytes 제출 일자 2023-10-29 23:16 출처: SW Expert Academy, https://swexpertacademy.com/main/code/problem/problemList.do import java.util.Scanner; class Solution { // 상,하,좌,우 static int[] dirX = {-1,1,0,0}; static int[] dirY = {0,0,-1,1}; static int tankDir,tankX,tankY; public static void main(String args[]) throws Exception { Scan..

    [SW expert Academy] SWEA 1221번 GNS 자바(Java)

    [D3] [S/W 문제해결 기본] 5일차 - GNS - 1221 문제 링크 성능 요약 메모리: 79,160 KB, 시간: 398 ms, 코드길이: 1,079 Bytes 제출 일자 2023-10-29 12:10 출처: SW Expert Academy, https://swexpertacademy.com/main/code/problem/problemList.do import java.util.Scanner; import java.util.Arrays; class Solution { public static void main(String args[]) throws Exception { Scanner sc = new Scanner(System.in); String[] nums = {"ZRO", "ONE", "TW..