전체 글

깃허브 : DongHun3946 백준 : a3989957
▶코드import java.util.*;import java.io.*;public class Main { static int range[][]; static boolean visited[][]; static int dx[] = {0, 0, -1, 1, -1, -1, 1, 1}; static int dy[] = {-1, 1, 0, 0, -1, 1, -1, 1}; static int N, M, cnt; static LinkedList result; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReade..
크루스칼 알고리즘, 프림 알고리즘, 다익스트라 알고리즘만 함 플로이드 알고리즘 안함
1 문제 2 문제로봇 제 3원칙 서술 3 문제1 격자 특징 : img를 5x5 격자로 나누고 각 격자의 밝기값을 특정2 수직히스토그램 : 가로 세로 방향의 pixel 값의 합을 구한다. 3 방향 특징 : 검은 pixel들의 이웃한 방향을 4방향 또는 8방향 코드로 표기한다.
▶코드 import java.util.*;import java.io.*;public class Main { static int N, M, cnt, e_result, t_result; static char arr[][]; static boolean visited[][]; static int dx[] = {0, 0, -1, 1}; static int dy[] = {-1, 1, 0, 0}; static LinkedList team; static LinkedList enemy; public static void main(String[] args) throws IOException { BufferedReader br = new..
https://www.acmicpc.net/problem/1743 ▶코드 import java.util.*; import java.io.*; public class Main { static int N, M, K; static int food[][]; static boolean visited[][]; static int dx[] = {0, 0, -1, 1}; static int dy[] = {-1, 1, 0, 0}; static int cnt; static LinkedList result; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(S..
▶코드 import java.util.*; import java.io.*; public class Main { static int M, N, K; static int range[][]; static boolean visited[][]; static int dx[] = {0, 0, -1, 1}; static int dy[] = {-1, 1, 0, 0}; static int cnt; static LinkedList result; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st; st =..
공부 기록장
Dong_hun