Til
-
- 오늘의 학습 키워드 : 완전 탐색[문제 이름 : 비슷한 단어 (백준 2179, G4)]문제 url : https://www.acmicpc.net/problem/2179내가 작성한 코드는 아래와 같다.import java.io.BufferedReader;import java.io.InputStreamReader;public class Main { public static void main(String args[]) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int num = Integer.parseInt(br.readLine()); ..
99클럽 코테 스터디 16일차 TIL [완전 탐색]- 오늘의 학습 키워드 : 완전 탐색[문제 이름 : 비슷한 단어 (백준 2179, G4)]문제 url : https://www.acmicpc.net/problem/2179내가 작성한 코드는 아래와 같다.import java.io.BufferedReader;import java.io.InputStreamReader;public class Main { public static void main(String args[]) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int num = Integer.parseInt(br.readLine()); ..
2024.11.13 -
- 오늘의 학습 키워드 : Dijkstra[문제 이름 : 미로만들기 (백준 2665, G4)]문제 url : https://www.acmicpc.net/problem/2665내가 작성한 코드는 아래와 같다.import java.io.*;import java.util.*;public class Main { static int n; static int[][] map; static int[][] dist; static int[] dx = {-1,1,0,0}; static int[] dy = {0,0,-1,1}; static final int MAX = Integer.MAX_VALUE; public static void main(String[] args) throws IOE..
99클럽 코테 스터디 15일차 TIL [Dijkstra]- 오늘의 학습 키워드 : Dijkstra[문제 이름 : 미로만들기 (백준 2665, G4)]문제 url : https://www.acmicpc.net/problem/2665내가 작성한 코드는 아래와 같다.import java.io.*;import java.util.*;public class Main { static int n; static int[][] map; static int[][] dist; static int[] dx = {-1,1,0,0}; static int[] dy = {0,0,-1,1}; static final int MAX = Integer.MAX_VALUE; public static void main(String[] args) throws IOE..
2024.11.12 -
- 오늘의 학습 키워드 : DFS[문제 이름 : 미로 탈출 명령어 (프로그래머스 150365, LV 3)]문제 url : https://school.programmers.co.kr/learn/courses/30/lessons/150365내가 작성한 코드는 아래와 같다.import java.util.*;class Solution { String answer = null; StringBuilder route = new StringBuilder(); int[] dx = {1, 0, 0, -1}; int[] dy = {0, -1, 1, 0}; char[] move = {'d', 'l', 'r', 'u'}; // 도착 지점 int endX, endY; // 미로 길이 ..
99클럽 코테 스터디 14일차 TIL [DFS]- 오늘의 학습 키워드 : DFS[문제 이름 : 미로 탈출 명령어 (프로그래머스 150365, LV 3)]문제 url : https://school.programmers.co.kr/learn/courses/30/lessons/150365내가 작성한 코드는 아래와 같다.import java.util.*;class Solution { String answer = null; StringBuilder route = new StringBuilder(); int[] dx = {1, 0, 0, -1}; int[] dy = {0, -1, 1, 0}; char[] move = {'d', 'l', 'r', 'u'}; // 도착 지점 int endX, endY; // 미로 길이 ..
2024.11.11 -
- 오늘의 학습 키워드 : DFS[문제 이름 : 미로 보수 (백준 30689, G3)]문제 url : https://www.acmicpc.net/problem/30689내가 작성한 코드는 아래와 같다.import java.io.*;import java.util.*;public class Main { static int N, M; static char[][] map; static int[][] cost; static int[][] count; static boolean[][] visited; static List results = new ArrayList(); public static void main(String[] args) throws IOException { ..
99클럽 코테 스터디 13일차 TIL [DFS]- 오늘의 학습 키워드 : DFS[문제 이름 : 미로 보수 (백준 30689, G3)]문제 url : https://www.acmicpc.net/problem/30689내가 작성한 코드는 아래와 같다.import java.io.*;import java.util.*;public class Main { static int N, M; static char[][] map; static int[][] cost; static int[][] count; static boolean[][] visited; static List results = new ArrayList(); public static void main(String[] args) throws IOException { ..
2024.11.10 -
- 오늘의 학습 키워드 : Map[문제 이름 : 도넛과 막대 그래프 (카카오 겨울 인턴십 문제, LV 2)]문제 url : https://school.programmers.co.kr/learn/courses/30/lessons/258711내가 작성한 코드는 아래와 같다.import java.util.*;class Solution { public int[] solution(int[][] edges) { Map startMap = new HashMap(); Map endMap = new HashMap(); int[] answer = new int[4]; // 정보 저장 for (int[] edge : edges) { st..
99클럽 코테 스터디 12일차 TIL [Map]- 오늘의 학습 키워드 : Map[문제 이름 : 도넛과 막대 그래프 (카카오 겨울 인턴십 문제, LV 2)]문제 url : https://school.programmers.co.kr/learn/courses/30/lessons/258711내가 작성한 코드는 아래와 같다.import java.util.*;class Solution { public int[] solution(int[][] edges) { Map startMap = new HashMap(); Map endMap = new HashMap(); int[] answer = new int[4]; // 정보 저장 for (int[] edge : edges) { st..
2024.11.09 -
- 오늘의 학습 키워드 : Greedy 알고리즘[문제 이름 : 도서관 (백준 1461, G4)]문제 url : https://www.acmicpc.net/problem/1461내가 작성한 코드는 아래와 같다.import java.util.*;import java.io.*;public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); int n = Int..
99클럽 코테 스터디 11일차 TIL [Greedy]- 오늘의 학습 키워드 : Greedy 알고리즘[문제 이름 : 도서관 (백준 1461, G4)]문제 url : https://www.acmicpc.net/problem/1461내가 작성한 코드는 아래와 같다.import java.util.*;import java.io.*;public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); int n = Int..
2024.11.08