File tree Expand file tree Collapse file tree 2 files changed +54
-0
lines changed
프로그래머스/0/181952. 문자열 출력하기 Expand file tree Collapse file tree 2 files changed +54
-0
lines changed Original file line number Diff line number Diff line change 1+ # [ level 0] 문자열 출력하기 - 181952
2+
3+ [ 문제 링크] ( https://school.programmers.co.kr/learn/courses/30/lessons/181952 )
4+
5+ ### 성능 요약
6+
7+ 메모리: 74.9 MB, 시간: 179.82 ms
8+
9+ ### 구분
10+
11+ 코딩테스트 연습 > 코딩 기초 트레이닝
12+
13+ ### 채점결과
14+
15+ 정확성: 100.0<br />합계: 100.0 / 100.0
16+
17+ ### 제출 일자
18+
19+ 2025년 02월 08일 14:55:05
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
Original file line number Diff line number Diff line change 1+ import java .util .Scanner ;
2+
3+ public class Solution {
4+ public static void main (String [] args ) {
5+ Scanner sc = new Scanner (System .in );
6+ String a = sc .next ();
7+ System .out .println (a );
8+ }
9+ }
You can’t perform that action at this time.
0 commit comments