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

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; class Program { static int t = int.Parse(Console.ReadLine()); static long[] dp = new long[100]; static long Fibo(int n) { dp[0] = 0; dp[1] = 1; for (int i = 2; i 0) { int n = int.Parse(Console.ReadLine()); Fibo(n); if (n == 0) Console.WriteLine("1 0"); else Console.Write($"{dp[n-1]} {dp[n]}\n"); } } }

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 = {..

public class Pair { public int num; public string str; public Pair(int num, string str) { this.num = num; this.str = str; } } internal class Program { static int t; static int[] a, b; static string[] result; static void BFS(int flag) { var queue = new Queue(); queue.Enqueue(new Pair(a[flag], "")); bool[] visited = new bool[10000]; visited[a[flag]] = true; while(queue.Count != 0) { int curNum = q..

internal class Program { static int[,] arr; static int n, m, start, end, min = int.MaxValue, result = 0; static List list = new List(); static bool[] visit = new bool[101]; static void BFS(int pivot, int cnt) { if(pivot == end) { arr[start, end] = Math.Min(cnt, arr[start, end]); return; } visit[pivot] = true; for (int i = 0; i < list[pivot].Count; i++) { if (!visit[list[pivot][i]]) { BFS(list[pi..