17413 단어 뒤집기 2 문제풀이 #include #include #include using namespace std; void fast_io(void) { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); } int main(void) { fast_io(); stack s; string str; int i = 0; getline(cin, str); while (str[i] != '\0') { if (str[i] == '