N과 M (6)1 [BOJ]15655번: N과 M (6) (c++) https://www.acmicpc.net/problem/15655 15655번: N과 M (6)N개의 자연수와 자연수 M이 주어졌을 때, 아래 조건을 만족하는 길이가 M인 수열을 모두 구하는 프로그램을 작성하시오. N개의 자연수는 모두 다른 수이다. N개의 자연수 중에서 M개를 고른 수열 �www.acmicpc.net 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556#include iostream>#include algorithm> using namespace std; const int MAX = 8;int numbers[MAX];bool visited[MAX];in.. 2020. 5. 6. 이전 1 다음