일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 안지랑카페
- 수성구맛집
- 대구삼겹살
- 대구고깃집
- 들안길삼겹살
- SQL
- 대구맛집
- 오라클
- 압구정데이트
- 대구데이트
- 수성구데이트
- 서울맛집
- 수성못삼겹살
- 반복문
- BFS
- C#
- 브루트 포스
- 별찍기
- 백준
- 범어동맛집
- oracle
- 대명동맛집
- 대구카페
- 프로그래머스
- 앞산카페
- 정렬
- programmers
- 조건문
- 큐
- 수성못맛집
- Today
- Total
목록백준 (70)
모든 일상

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { int[] arr = new int[5]; int avg = 0; for(int i = 0; i

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { string[,] arr = new string[9, 9]; int max = int.MinValue; // 처음에 0으로 했다가 틀렸습니다, 나와서 한참 찾았네요 ㅠㅠ int y_loc= 0, x_loc = 0; for (int i = 0; i

using System; using System.Collections; using System.Collections.Generic; namespace ConsoleApp3 { public class Program { static void Main(string[] args) { int size = int.Parse(Console.ReadLine()); int[,] value = new int[size, size]; int[,] visit = new int[size, size]; int[] dx = new int[4] { 1, 0, -1, 0 }; int[] dy = new int[4] { 0, 1, 0, -1 }; Queue q = new Queue(); // X,Y 축 위치 저장 Queue result ..

using System; using System.Collections; using System.Collections.Generic; namespace ConsoleApp3 { public class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(); int size_y = int.Parse(input[0]); int size_x = int.Parse(input[1]); int test_case = int.Parse(input[2]); int[,] data = new int[100, 100]; int[,] visit = new int[100, 100]; int[] dx = new int[4] { 1, 0, -..

using System; using System.Collections; using System.Collections.Generic; namespace ConsoleApp3 { public class Program { static void Main(string[] args) { int test_case = int.Parse(Console.ReadLine()); int[] result= new int[test_case]; int[] dx = new int[8] {2, 2, 1, 1, -2, -2, -1, -1}; // 나이트 움직임 -> ((x 축 2칸 - y 축 1칸) or (x 축 1칸 + y축 2칸)) int[] dy = new int[8] {1, -1, 2, -2, 1, -1, 2, -2}; for ..

using System; using System.Collections; using System.Collections.Generic; namespace ConsoleApp3 { public class Program { static void Main(string[] args) { string[] input_data = Console.ReadLine().Split(); int start = int.Parse(input_data[0]); int end = int.Parse(input_data[1]); int[] visit = new int[200001]; // 0

10950문제와 비슷하다. 하지만 문제에서 StringBuilder를 사용하여 문제를 해결하라고 나왔다. using System; using System.Text; namespace ConsoleApp6 { class Program { static void Main(string[] args) { int count = int.Parse(Console.ReadLine()); int[] num1 = new int[count]; int[] num2 = new int[count]; StringBuilder result = new StringBuilder(); for (int i = 0; i