next_permutaion

풀이 #include #include using namespace std; // next_permutaion 을 사용하면 쉽게 풀이 가능 int main() { string str; while (cin >> str) { if (str[0] == '#') { break; } bool val = next_permutation(str.begin(), str.end()); if (val == false) { cout
쓴웃음
'next_permutaion' 태그의 글 목록