알고리즘 - SWEA
[SW expert Academy] SWEA 8104번 조 만들기 자바(Java)
[D3] 조 만들기 - 8104 문제 링크 성능 요약 메모리: 24,332 KB, 시간: 174 ms, 코드길이: 1,004 Bytes 제출 일자 2023-11-02 10: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
[SW expert Academy] SWEA 7675번 통역사 성경이 자바(Java)
[D3] 통역사 성경이 - 7675 문제 링크 성능 요약 메모리: 32,644 KB, 시간: 194 ms, 코드길이: 906 Bytes 제출 일자 2023-11-02 09: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); int T =sc.nextInt(); for(int tc = 1; tc
[SW expert Academy] SWEA 8338번 계산기 자바(Java)
[D3] 계산기 - 8338 문제 링크 성능 요약 메모리: 119,992 KB, 시간: 1,226 ms, 코드길이: 520 Bytes 제출 일자 2023-11-02 09:15 출처: 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 4789번 성공적인 공연 기획 자바(Java)
[D3] 성공적인 공연 기획 - 4789 문제 링크 성능 요약 메모리: 23,248 KB, 시간: 160 ms, 코드길이: 675 Bytes 제출 일자 2023-11-02 09:08 출처: 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 3456번 직사각형 길이 찾기 자바(Java)
[D3] 직사각형 길이 찾기 - 3456 문제 링크 성능 요약 메모리: 27,448 KB, 시간: 181 ms, 코드길이: 417 Bytes 제출 일자 2023-11-01 13:39 출처: 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 1229번 암호문2 자바(Java)
[D3] [S/W 문제해결 기본] 8일차 - 암호문2 - 1229 문제 링크 성능 요약 메모리: 28,016 KB, 시간: 188 ms, 코드길이: 1,067 Bytes 제출 일자 2023-11-01 13:28 출처: SW Expert Academy, https://swexpertacademy.com/main/code/problem/problemList.do import java.util.Scanner; import java.util.LinkedList; class Solution { public static void main(String args[]) throws Exception { Scanner sc = new Scanner(System.in); for(int tc = 1; tc 0){ list.a..
[SW expert Academy] SWEA 5986번 새샘이와 세 소수 자바(Java)
[D3] 새샘이와 세 소수 - 5986 문제 링크 성능 요약 메모리: 23,924 KB, 시간: 1,948 ms, 코드길이: 1,162 Bytes 제출 일자 2023-11-01 13:16 출처: SW Expert Academy, https://swexpertacademy.com/main/code/problem/problemList.do import java.util.Scanner; class Solution { static boolean[] prime; static int result,n; static int[] arr = new int[3]; public static void main(String args[]) throws Exception { Scanner sc = new Scanner(System...
[SW expert Academy] SWEA 4698번 테네스의 특별한 소수 자바(Java)
[D3] 테네스의 특별한 소수 - 4698 문제 링크 성능 요약 메모리: 90,712 KB, 시간: 521 ms, 코드길이: 826 Bytes 제출 일자 2023-11-01 12: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(); boolean[] prime = new boolean[1000001]; prime[0] = ..