본문 바로가기 메뉴 바로가기

kingsubin

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

kingsubin

검색하기 폼
  • 분류 전체보기 (485)
    • Python (1)
    • Java (35)
    • Spring (18)
    • JavaScript & TypeScript (23)
    • HTML & CSS (2)
    • Database (4)
    • DevOps (8)
    • CS (13)
    • Algorithm (10)
    • etc (22)
    • PS (231)
      • boj (157)
      • programmers (54)
      • etc (19)
      • leetcode (1)
    • 책 (98)
      • 이펙티브자바 (50)
      • 모던 자바스크립트 딥다이브 (24)
      • misc (14)
      • 독서 (10)
    • 일상 (20)
  • 방명록

백준 (34)
boj)2644 - 촌수계산

import java.io.*; import java.util.*; public class Main { static int N, M, person1, person2, x, y; static LinkedList[] nodeList; static boolean[] visited; static boolean check; static class Node { int index; int distance; public Node(int index, int distance) { this.index = index; this.distance = distance; } } public static void bfs(int start, int end) { Queue q = new LinkedList(); q.offer(new No..

PS/boj 2020. 9. 5. 16:40
boj)7576 - 토마토

import java.io.*; import java.util.*; public class Main { static int N, M; static int[][] graph; static int[] dx = {-1, 1, 0, 0}; static int[] dy = {0, 0, -1, 1}; // x,y 좌표가 함께 움직야하고, 날짜를 세야하는데 그걸 클래스 안에 넣었음 static class Dot { int x; int y; int day; public Dot(int x, int y, int day) { this.x = x; this.y = y; this.day = day; } } public static void main(String[] args) throws IOException { input();..

PS/boj 2020. 9. 5. 14:30
boj)2178 - 미로 탐색

import java.io.*; import java.util.LinkedList; import java.util.Queue; import java.util.StringTokenizer; class Node { int index; int distance; public Node(int index, int distance) { this.index = index; this.distance = distance; } public int getIndex() { return index; } public int getDistance() { return distance; } } public class Main { static int n, m, nx, ny; static int[][] graph = new int[101]..

PS/boj 2020. 9. 3. 18:20
boj)1012 - 유기농 배추

import java.io.*; import java.util.StringTokenizer; public class Main { static int t, m, n, k, x, y, ans; static int[][] graph = new int[50][50]; public static boolean dfs(int x, int y) { if (x = m || y = n) { return false; } if (graph[x][y] == 1) { graph[x][y] = 0; dfs(x - 1, y); dfs(x + 1, y); dfs(x, y - 1); dfs(x, y + 1); return true; } return false; } public static void m..

PS/boj 2020. 9. 3. 17:00
boj)2667 - 단지번호붙이기

import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.*; public class Main { static int n, danjiCnt; static int[][] graph = new int[26][26]; static int[] num = new int[26*26]; static boolean dfs (int x, int y) { if (x n || y n) { return false; } // 단지가 될 수 있다면 if (graph[x][y] == 1) { graph[x][y] = 0; num[danjiCnt]++; d..

PS/boj 2020. 9. 3. 16:02
boj)2606 - 바이러스

import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.*; public class Main { static int n, m, node1, node2, cnt; static LinkedList[] nodeList; static boolean[] visited = new boolean[101]; public static void dfs(int node) { if (visited[node]) return; visited[node] = true; cnt++; for (int nextNode : nodeList[node]) { dfs(nextNode); } } public..

PS/boj 2020. 9. 3. 13:05
boj)1260 - DFS와 BFS

import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.*; public class Main { static int n, m, v; static LinkedList[] nodeList; static boolean[] checked = new boolean[1001]; static boolean[] checked2 = new boolean[1001]; public static void dfs(int node) { if (checked[node]) return; checked[node] = true; System.out.print(node + " "); for (int..

PS/boj 2020. 9. 3. 12:25
boj)18352 - 특정 거리의 도시 찾기

import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.*; public class Main { public static int n, m, k, x; public static ArrayList graph = new ArrayList(); // 모든 도시에 대한 최단 거리 초기화 public static int[] d = new int[300001]; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(S..

PS/boj 2020. 9. 2. 17:39
이전 1 2 3 4 5 다음
이전 다음
링크
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
TAG
  • js array
  • 김영한 JPA
  • REST API
  • 드림코딩
  • 집 구하기
  • JS 딥다이브
  • Spring Security
  • HTTP 완벽가이드
  • dreamcoding
  • js api
  • GCP
  • 프로그래머스
  • 이펙티브자바
  • 이펙티브자바 아이템59
  • 가상 면접 사례로 배우는 대규모 시스템 설계 기초
  • 프로그래머스 SQL
  • BOJ
  • HTTP 완벽 가이드
  • java
  • 백준
  • 이펙티브자바 아이템60
  • 김영한 http
  • 패스트캠퍼스 컴퓨터공학 완주반
  • 백기선 스터디
  • JPA 연관관계 매핑
  • http
  • 킹수빈닷컴
  • js promise
  • 모던자바스크립트
  • 이펙티브자바 스터디
more
«   2023/12   »
일 월 화 수 목 금 토
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
31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바