Notice
Recent Posts
Tags
- timer / counter
- behavior modeling
- 4bit parallel adder
- half adder
- java
- sequential logic circuit
- behavioral modeling
- structure
- ctc mode
- LED
- Linked List
- Set
- 8bit timer/counter
- full adder
- Algorithm
- verilog
- atmega 128a
- atmega 128
- interrupt
- Method
- interface
- MUX
- ATMEGA128A
- fast pwm mode
- dataflow modeling
- Comparator
- Recursion
- structural modeling
- gpio
- normal mode
목록백준 15649번 (1)
거북이처럼 천천히
Java - [백준] 15649번 : N과 M (1)
1. 문제 자연수 N과 M이 주어졌을 때, 아래 조건을 만족하는 길이가 M인 수열을 모두 구하는 프로그램을 작성하시오. 1부터 N까지 자연수 중에서 중복 없이 M개를 고른 수열 https://www.acmicpc.net/problem/15649 15649번: N과 M (1) 한 줄에 하나씩 문제의 조건을 만족하는 수열을 출력한다. 중복되는 수열을 여러 번 출력하면 안되며, 각 수열은 공백으로 구분해서 출력해야 한다. 수열은 사전 순으로 증가하는 순서로 출력해 www.acmicpc.net 2. 생각 본 문제는 길이가 M인 수열을 구해야 하기 때문에 state-space tree를 이용하여 해가 될 수 있는 모든 노드에 직접 방문하여 찾아야 하기 때문에 1) Depth-first search, 2) Back..
Algorithm/알고리즘 문제 풀이
2022. 10. 14. 16:10