본문 바로가기
반응형

학부공부/Algorithm PS_알고리즘57

05.12. 이항 계수 2 [Dynamic Programming][백준 11051] https://www.acmicpc.net/problem/11051 11051번: 이항 계수 2 첫째 줄에 \(N\)과 \(K\)가 주어진다. (1 ≤ \(N\) ≤ 1,000, 0 ≤ \(K\) ≤ \(N\)) www.acmicpc.net Algorithm classification : Dynamic Programming 05.12.1. Problem Write a program to find the remainder of dividing a binomial coefficient by 10,0007 given a natural number N and an integer K. 05.12.2. Input limit N and K are given in the first line. (1 ≤ N ≤ 1,000.. 2021. 12. 28.
05.11. 오르막 수 [Dynamic Programming][백준 11057] https://www.acmicpc.net/problem/11057 11057번: 오르막 수 오르막 수는 수의 자리가 오름차순을 이루는 수를 말한다. 이때, 인접한 수가 같아도 오름차순으로 친다. 예를 들어, 2234와 3678, 11119는 오르막 수이지만, 2232, 3676, 91111은 오르막 수가 아니다. 수 www.acmicpc.net Algorithm classification : Dynamic Programming 05.11.1. Problem An ascending number is a number whose digits are in ascending order. At this time, even if the adjacent numbers are the same, they are play.. 2021. 12. 28.
05.10. 쉬운 계단 수 [Dynamic Programming][백준 10844] https://www.acmicpc.net/problem/10844 10844번: 쉬운 계단 수 첫째 줄에 정답을 1,000,000,000으로 나눈 나머지를 출력한다. www.acmicpc.net Algorithm classification : Dynamic Programming 05.10.1. Problem Let's look at the number 45656. The difference between all adjacent digits of this number is 1. This number is called the number of steps. Given N, find the total number of steps of length N. Numbers starting with 0 are not .. 2021. 12. 28.
05.09. 카드 구매하기 [Dynamic Programming][백준 11052] https://www.acmicpc.net/problem/11052 11052번: 카드 구매하기 첫째 줄에 민규가 구매하려고 하는 카드의 개수 N이 주어진다. (1 ≤ N ≤ 1,000) 둘째 줄에는 Pi가 P1부터 PN까지 순서대로 주어진다. (1 ≤ Pi ≤ 10,000) www.acmicpc.net Algorithm classification : Dynamic Programming 05.09.1. Problem 요즘 민규네 동네에서는 스타트링크에서 만든 PS카드를 모으는 것이 유행이다. PS카드는 PS(Problem Solving)분야에서 유명한 사람들의 아이디와 얼굴이 적혀있는 카드이다. 각각의 카드에는 등급을 나타내는 색이 칠해져 있고, 다음과 같이 8가지가 있다. 전설카드 레드카드 오렌지카드 .. 2021. 12. 28.
05.08. 제곱수의 합 [Dynamic Programming][백준 1699] https://www.acmicpc.net/problem/1699 1699번: 제곱수의 합 어떤 자연수 N은 그보다 작거나 같은 제곱수들의 합으로 나타낼 수 있다. 예를 들어 11=32+12+12(3개 항)이다. 이런 표현방법은 여러 가지가 될 수 있는데, 11의 경우 11=22+22+12+12+12(5개 항)도 가능하다 www.acmicpc.net Algorithm classification : Dynamic Programming, Math 05.08.1. Problem Any natural number N can be expressed as the sum of squares less than or equal to it. For example, 11=3^2+1^2+1^2 (3 terms). This e.. 2021. 12. 28.
05.07. 동전 2 [Dynamic Programming][백준 2294] https://www.acmicpc.net/problem/2294 2294번: 동전 2 첫째 줄에 n, k가 주어진다. (1 ≤ n ≤ 100, 1 ≤ k ≤ 10,000) 다음 n개의 줄에는 각각의 동전의 가치가 주어진다. 동전의 가치는 100,000보다 작거나 같은 자연수이다. 가치가 같은 동전이 여러 번 주 www.acmicpc.net Algorithm classification : Dynamic Programming 05.07.1. Problem There are n types of coins. I would like to use these coins in moderation so that their value sums to k won. At the same time, we try to minim.. 2021. 12. 27.
반응형