알고리즘/BOJ
[C++] 백준 11719번 - 그래도 출력하기 2
Jay, Lee
2021. 8. 7. 20:08
getline을 사용하면 간단히 해결되는 문제인 것 같다.
#include <iostream>
#include <string>
using namespace std;
int main() {
string s;
while (getline(cin, s)) {
cout << s << "\n";
}
return 0;
}