일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 기본 게이트웨이
- 네트워크
- List 찾기
- 알고리즘
- 서브넷 마스크
- c#
- List 추가
- 호스트 주소
- BFS
- AddRange
- List 제거
- List 정렬
- list
- list 사용법
- c# list
- Parse 사용법
- C# Contains
- TCP/IP
- 호스트
- 네트워크 용어
- C++
- Tostring 사용법
- OSI 3계층
- InsertRange
- 서브넷
- C# Find
- 백준
- Visual Studio
- DP
- IP주소
- Today
- Total
목록BFS (4)
CodeLabs

using System; using System.Collections.Generic; using System.Linq; struct Locate { public int location, time; public Locate(int location,int time) { this.location = location; this.time = time; } } class Program { static int[] N_K = Console.ReadLine().Split().Select(int.Parse).ToArray(); static int n = N_K[0], k = N_K[1]; static bool[] visited = new bool[100001]; static Queue lot = new Queue(); s..

using System; using System.Collections.Generic; using System.Linq; namespace _1260 { class Program { static int n, m, v; static int[] visited = new int[1001]; static int[,] arr = new int[1001, 1001]; static void DPS(int v) { Console.Write(v + " "); visited[v] = 1; for(int i=1; i

using System; using System.Collections.Generic; using System.Linq; namespace _7576 { struct Tomato { public int y, x; public Tomato(int i, int j) { y = i; x = j; } } class Program { static int n, m, result = 0; static int[] dx = { 1, 0, -1, 0 }, dy = { 0, 1, 0, -1 }; // 우 하 좌 상 static int[,] box = new int[1001, 1001]; static Queue q = new Queue(); static void BFS() { while (!q.Count.Equals(0)) {..

using System; using System.Collections.Generic; using System.Linq; struct Tomato { public int x, y, z; public Tomato(int h, int i, int j) { y = i; x = j; z = h; } } class Program { static int[] M_N_Z = Console.ReadLine().Split().Select(int.Parse).ToArray(); static int m = M_N_Z[0], n = M_N_Z[1], h = M_N_Z[2], result = 0; static int[] dx = { 1, 0, 0, -1, 0, 0 }, dy = { 0, 1, 0, 0, -1, 0 }, dz = {..