package org.example.알고리즘.PCCP기출문제2번; import java.util.*; class Solution { private static final int[] DX = {0, 0, -1, 1}; private static final int[] DY = {1, -1, 0, 0}; public static void main(String[] args) { Solution solution = new Solution(); System.out.println(solution.solution(new int[][]{{0, 0, 0, 1, 1, 1, 0, 0}, {0, 0, 0, 0, 1, 1, 0, 0}, {1, 1, 0, 0, 0, 1, 1, 0}, {1, 1, 1, 0, 0, 0, 0, 0}, ..
코드class Solution { public static void main(String[] args) { Solution solution = new Solution(); System.out.println(solution.solution("CBD", new String[]{"BACDE", "CBADF", "AECB", "BDA"})); System.out.println("================================"); } public int solution(String skill, String[] skill_trees) { int answer = 0; for (String skillTree : skill_trees) { System.out.println("skillTree = " + sk..
package org.example.알고리즘.친구; import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in));) { // 사람의 수 N int N = Integer.parseInt(br.readLine()); char[][] friends = new char[N][N]; for (int i = 0; i < N; i++) { friends[i] = br.readLine() .toCharArray(); }..
package org.example.알고리즘.두원사이의정수쌍; import java.text.MessageFormat; public class Solution { public static void main(String[] args) { Solution solution = new Solution(); System.out.println(solution.solution(2, 3)); } public long solution(int r1, int r2) { if (!(1
package org.example.알고리즘.요격시스템; import java.util.Arrays; import java.util.Comparator; import java.util.Objects; /** * packageName : org.example.알고리즘.요격시스템 * fileName : Solution * author : ipeac * date : 2023-09-25 * description : * =========================================================== * DATE AUTHOR NOTE * ----------------------------------------------------------- * 2023-09-25 ipeac 최초 생성 ..
package org.example.알고리즘.두스티커; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.text.MessageFormat; import java.util.Objects; import java.util.StringTokenizer; /** * packageName : org.example.알고리즘.두스티커 * fileName : Main * author : ipeac * date : 2023-09-24 * description : * =============================..