Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- set
- unordered_map
- 프로그래머스
- 문자열
- 플로이드와샬
- vector
- 최대공약수
- C++
- 코딩테스트연습
- 다이나믹프로그래밍
- 코테
- substr
- MAP
- 시스템콜
- String
- 참고 문헌 : MACHINE LEARNING 기계학습 _ 오일석
- 정렬
- 리시프
- 백준
- 동적계획법
- dfs
- 코테준비
- 우선순위큐
- MySQL
- sql고득점kit
- 스택
- Dijkstra
- 다익스트라
- 알고리즘
- DP
Archives
- Today
- Total
YeJin's Footsteps
next_permutation(start, end) 본문
#include <iostream>
#include <algorithm>
#include <iterator>
using namespace std;
void p(char * a, const int m){
do{
copy(a, a+m+1, ostream_iterator<char>(cout," "));
cout<<endl;
}while(next_permutation(a,a+m+1));
}
int main() {
char a[3]={'1','2','3'};
p(a,2);
return 0;
}
'Computer Science & Engineering > 알고리즘' 카테고리의 다른 글
튜플 (0) | 2021.05.02 |
---|---|
크레인 인형 뽑기 게임 (0) | 2021.05.02 |
완주하지 못한 선수 (0) | 2021.05.02 |
SelectionSort(선택 정렬) (0) | 2021.04.16 |
겨울 방학_백준 문제 풀이(아이패드 기록) (0) | 2021.04.04 |
Comments