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

using System; using System.Linq; class Program { static int n; static int result = 1; static void Input() { n = int.Parse(Console.ReadLine()); } static void Solution() { int[][] meeting_time = new int[n][]; for (int i = 0; i < n; i++) { var input = Console.ReadLine().Split(); int[] copy = new int[2]; copy[0] = int.Parse(input[0]); copy[1] = int.Parse(input[1]); meeting_time[i] = copy; } // 가변배열 ..

using System; using System.Collections.Generic; using System.Text; using System.IO; namespace _11279 { class MaxHeap { private List A = new List(); public void Add(int value) { // Add the end A.Add(value); // bubble up(부모노드 찾기) int i = A.Count - 1; while (i > 0) { int parent = (i - 1) / 2; if (A[parent] > A[i]) // Max Heap일때는 부등호를 반대 { Swap(parent, i); i = parent; } else break; } } public int Re..
추가 제거 찾기 정렬

Sort public class Part : IEquatable, IComparable { public int Id; public string Name; public Part(int id, string name) { Id = id; Name = name; } public int SortByNameAscending(string name1, string name2) { return name1.CompareTo(name2); } public int CompareTo(Part comparePart) { if (comparePart == null) return 1; else return Id.CompareTo(comparePart.Id); } public bool Equals(Part? other) { if (o..

using System; class Program { static string[] str; static int result = 0; static void Input() { str = Console.ReadLine().Split('-'); } static void Solution() { Division(); for(int i=1; i

1. Contains static void Main(string[] args) { List i_list = new List(); i_list.Add(100); i_list.Add(200); i_list.Add(300); i_list.Add(400); for (int i = 0; i < i_list.Count; i++) { Console.WriteLine($"i_list[{i}] = {i_list[i]}"); } Console.WriteLine("\n=========== Contains ===========\n"); Console.WriteLine($"Contains : i_list with 200 is {i_list.Contains(200)}"); Console.WriteLine($"Contains : ..