알고리즘 - SWEA/D3

    [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] = ..

    [SW expert Academy] SWEA 4466번 최대 성적표 만들기 자바(Java)

    [D3] 최대 성적표 만들기 - 4466 문제 링크 성능 요약 메모리: 36,856 KB, 시간: 189 ms, 코드길이: 632 Bytes 제출 일자 2023-11-01 12:45 출처: 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); int T = sc.nextInt(); for(int tc = 1; tc

    [SW expert Academy] SWEA 3131번 100만 이하의 모든 소수 자바(Java)

    [D3] 100만 이하의 모든 소수 - 3131 문제 링크 성능 요약 메모리: 41,976 KB, 시간: 273 ms, 코드길이: 521 Bytes 제출 일자 2023-11-01 10:14 출처: 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 { boolean[] prime = new boolean[1000001]; prime[1] = true; for(int i = 2; i

    [SW expert Academy] SWEA 5948번 새샘이의 7-3-5 게임 자바(Java)

    [D3] 새샘이의 7-3-5 게임 - 5948 문제 링크 성능 요약 메모리: 103,836 KB, 시간: 599 ms, 코드길이: 960 Bytes 제출 일자 2023-11-01 10:10 출처: SW Expert Academy, https://swexpertacademy.com/main/code/problem/problemList.do import java.util.*; class Solution { static int[] nums; static boolean[] visit; static ArrayList list; public static void main(String args[]) throws Exception { Scanner sc = new Scanner(System.in); int T = sc..

    [SW expert Academy] SWEA 2930번 힙 자바(Java)

    [D3] 힙 - 2930 문제 링크 성능 요약 메모리: 123,900 KB, 시간: 996 ms, 코드길이: 737 Bytes 제출 일자 2023-11-01 09:58 출처: 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 o2-o1); StringBuilder sb = new StringBuilder()..

    [SW expert Academy] SWEA 10726번 이진수 표현 자바(Java)

    [D3] 이진수 표현 - 10726 문제 링크 성능 요약 메모리: 56,260 KB, 시간: 311 ms, 코드길이: 579 Bytes 제출 일자 2023-11-01 09:45 출처: 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 2948번 문자열 교집합 자바(Java)

    [D3] 문자열 교집합 - 2948 문제 링크 성능 요약 메모리: 143,104 KB, 시간: 1,761 ms, 코드길이: 611 Bytes 제출 일자 2023-11-01 09:25 출처: 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 3975번 승률 비교하기 자바(Java)

    [D3] 승률 비교하기 - 3975 문제 링크 성능 요약 메모리: 120,748 KB, 시간: 1,530 ms, 코드길이: 420 Bytes 제출 일자 2023-10-31 13: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 b ? "ALICE" : "BOB"))); } } }