Skip to content

Commit 1fde838

Browse files
committed
[level 0] Title: 문자열 출력하기, Time: 46.02 ms, Memory: 32.3 MB -BaekjoonHub
1 parent ae46779 commit 1fde838

2 files changed

Lines changed: 59 additions & 0 deletions

File tree

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# [level 0] 문자열 출력하기 - 181952
2+
3+
[문제 링크](https://school.programmers.co.kr/learn/courses/30/lessons/181952)
4+
5+
### 성능 요약
6+
7+
메모리: 32.3 MB, 시간: 46.02 ms
8+
9+
### 구분
10+
11+
코딩테스트 연습 > 코딩 기초 트레이닝
12+
13+
### 채점결과
14+
15+
정확성: 100.0<br/>합계: 100.0 / 100.0
16+
17+
### 제출 일자
18+
19+
2025년 05월 13일 20:44:17
20+
21+
### 문제 설명
22+
23+
<p>문자열 <code>str</code>이 주어질 때, <code>str</code>을 출력하는 코드를 작성해 보세요.</p>
24+
25+
<hr>
26+
27+
<h5>제한사항</h5>
28+
29+
<ul>
30+
<li>1 ≤ <code>str</code>의 길이 ≤ 1,000,000</li>
31+
<li><code>str</code>에는 공백이 없으며, 첫째 줄에 한 줄로만 주어집니다.</li>
32+
</ul>
33+
34+
<hr>
35+
36+
<h5>입출력 예</h5>
37+
38+
<p>입력 #1</p>
39+
<div class="highlight"><pre class="codehilite"><code>HelloWorld!
40+
</code></pre></div>
41+
<p>출력 #1</p>
42+
<div class="highlight"><pre class="codehilite"><code>HelloWorld!
43+
</code></pre></div>
44+
45+
> 출처: 프로그래머스 코딩 테스트 연습, https://school.programmers.co.kr/learn/challenges
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
const readline = require('readline');
2+
const rl = readline.createInterface({
3+
input: process.stdin,
4+
output: process.stdout
5+
});
6+
7+
let input = [];
8+
9+
rl.on('line', function (line) {
10+
input = [line];
11+
}).on('close',function(){
12+
str = input[0];
13+
console.log(str)
14+
});

0 commit comments

Comments
 (0)