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

문제 4 × 3 = 12이다. 이 식을 통해 다음과 같은 사실을 알 수 있다. 3은 12의 약수이고, 12는 3의 배수이다. 4도 12의 약수이고, 12는 4의 배수이다. 두 수가 주어졌을 때, 다음 3가지 중 어떤 관계인지 구하는 프로그램을 작성하시오. 첫 번째 숫자가 두 번째 숫자의 약수이다. 첫 번째 숫자가 두 번째 숫자의 배수이다. 첫 번째 숫자가 두 번째 숫자의 약수와 배수 모두 아니다 입력 입력은 여러 테스트 케이스로 이루어져 있다. 각 테스트 케이스는 10,000이 넘지않는 두 자연수로 이루어져 있다. 마지막 줄에는 0이 2개 주어진다. 두 수가 같은 경우는 없다. 출력 각 테스트 케이스마다 첫 번째 숫자가 두 번째 숫자의 약수라면 factor를, 배수라면 multiple을, 둘 다 아니라면..

100 X 100 이차원 배열을 생성하고 입력한 X, Y 값부터 + 10까지의 범위에 모두 "1"을 넣고 마지막에 1의 개수를 합이 곧 이 문제의 답이 된다. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication2 { public class Program { public static void Main(string[] args) { int num = int.Parse(Console.ReadLine()); string[,] arr = new string[100,100]; int cnt = 0; while ..

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

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 str = Console.ReadLine(); int[] arr = new int[str.Length]; string result = ""; 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) { int num = int.Parse(Console.ReadLine()); int[] arr = new int[num]; int[] score = new int[8001]; // 절대값 4000 -> -4000 ~ 4000 까지 List list = new List(); int sum = 0; int min = int.MaxValue; int max = in..

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 num = int.Parse(Console.ReadLine()); int[] arr = new int[num]; 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 = Console.ReadLine().Split(); int num = int.Parse(arr[0]); int cut = int.Parse(arr[1]); string[] buff = Console.ReadLine().Split(); int[] score_arr = Array.ConvertAll(buff, s => int.Parse..