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