C++)
#include<iostream>
#include<string>
using namespace std;
int main(){
string str;
while (true){
getline(cin, str);
if (str=="")
break;
cout << str << endl;
}
return 0;
}
Python)
import sys
while True:
try:
print(input())
except:
break'백준 1 > 기초' 카테고리의 다른 글
| [백준 10818] 최소, 최대 (C++/Python) (0) | 2020.12.05 |
|---|---|
| [백준 11721] 열 개씩 끊어 출력하기 (C++/Python) (0) | 2020.12.05 |
| [백준 11720] 숫자의 합 (C++/Python) (0) | 2020.12.05 |
| [백준 11719] 그대로 출력하기2 (C++/Python) (0) | 2020.12.05 |
| [백준 10951] A+B - 4 (C/Python) (0) | 2020.12.05 |