전체 글

전체 글

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

    [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

    [백준] 1747번 : 소수&팰린드롬 Silver1(실버1) - JAVA[자바]

    [Silver I] 소수&팰린드롬 - 1747 문제 링크 성능 요약 메모리: 19612 KB, 시간: 176 ms 분류 브루트포스 알고리즘, 수학, 정수론, 소수 판정, 에라토스테네스의 체 제출 일자 2023년 11월 1일 11:23:13 문제 설명 어떤 수와 그 수의 숫자 순서를 뒤집은 수가 일치하는 수를 팰린드롬이라 부른다. 예를 들어 79,197과 324,423 등이 팰린드롬 수이다. 어떤 수 N (1 ≤ N ≤ 1,000,000)이 주어졌을 때, N보다 크거나 같고, 소수이면서 팰린드롬인 수 중에서, 가장 작은 수를 구하는 프로그램을 작성하시오. 입력 첫째 줄에 N이 주어진다. 출력 첫째 줄에 조건을 만족하는 수를 출력한다. import java.util.Scanner; class Main{ pu..