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

using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { int num = int.Parse(Console.ReadLine()); bool check = false; for (int i = 1; i 0) { result += buff % 10; buff /= 10; } if (result == num) { Console.WriteLine(i); check = true; break; ..

using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(); int cnt = int.Parse(str[0]); int num = int.Parse(str[1]); int max = int.MinValue; int[] arr = Console.ReadLine().Split().Select(int.Parse).T..