일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- 디자인 패턴
- react firebase
- 데이터모델링과마이닝
- codesandbox
- 리액트 훅
- NextJS
- 프로그래머스 자바
- websocket
- 장고
- 프로그래머스 완전탐색
- 자바스크립트
- 리액트
- 백준
- vanillaJS
- 코딩테스트 고득점 Kit
- useEffect
- Java
- 자바
- 컴퓨터 네트워크
- design pattern
- 프로그래머스
- 코틀린
- 코딩테스트 고득점 Kit 완전탐색
- react hook
- react
- 프로그래밍 언어론
- React JS
- JavaScript
- 자바 공부
- useState
- Today
- Total
목록백준 알고리즘 (3)
기록하는 개발자

https://www.acmicpc.net/problem/7576 7576번: 토마토 첫 줄에는 상자의 크기를 나타내는 두 정수 M,N이 주어진다. M은 상자의 가로 칸의 수, N은 상자의 세로 칸의 수를 나타낸다. 단, 2 ≤ M,N ≤ 1,000 이다. 둘째 줄부터는 하나의 상자에 저장된 토마토 www.acmicpc.net import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; import java.util.StringTokenizer; import java.util.LinkedList; import java.util.Queue; public class Main { public static ..

import java.util.Scanner; import java.util.ArrayList; import java.util.Collections; public class Main { static int[][] checked; //확인 여부 static int[][] map; static int dx[] = {-1,1,0,0}; static int dy[] = {0,0,-1,1}; static int n, count; //정점, 간선개수 static ArrayList list = new ArrayList(); public static int dfs(int row, int col) { checked[row][col] = 1; //확인한 정점을 1로 초기화 for(int i=0;i=0 && ny>=0 &&..

import java.io.IOException; import java.util.Scanner; public class Main{ static int[][] adjacent; static boolean[][] checked; static int n,m,k,T,temp; static StringBuilder sb = new StringBuilder(); public static void main(String[] args) throws IOException { Scanner s = new Scanner(System.in); T = s.nextInt();//테스트케이스 개수 for(int j=0; j= m) //좌표값이 잘못된 경우 return false; if(checked[row][col] == true ..