알고리즘73 백준 6603번 : 로또 문제 링크 : www.acmicpc.net/problem/6603 풀이에 참고한 링크 : melonicedlatte.com/algorithm/2018/08/26/171154.html 내 풀이(2020.12.16.) : #include #include using namespace std; int k; void search(vector& candidate, vector& answer, int index) { if (answer.size() == 6) { // 로또 번호 출력 for (int i = 0; i temp; candidate.push_back(temp); } vector answer; search(candidate, answer, 0); cout 2020. 12. 16. 이전 1 ··· 16 17 18 19 다음