
입력받은 값을 그대로 출력하라.
Bash 
bash
while :; do
	read str
	if [ "$str" == "" ]; then
		break
	fi
	echo "$str"
done1
2
3
4
5
6
7
2
3
4
5
6
7
따옴표로 묶지 않으면 출력 형식이 잘못되었다고 뜬다.
Node.js 
javascript
const [...arr] = require("fs").readFileSync(0).toString().trim().split("\n");
console.log(arr.join("\n"));1
2
2
Python3 
python
try:
    while 1: print(input())
except: pass1
2
3
2
3
Ruby 
ruby
begin
  while 1
    puts gets.chomp
  end
rescue
  nil
end1
2
3
4
5
6
7
2
3
4
5
6
7
Comments
Not supported comment edit and upvote
You can do it on this page if you want.