You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>문자열 <code>my_string</code>과 정수 <code>n</code>이 매개변수로 주어질 때, <code>my_string</code>에 들어있는 각 문자를 <code>n</code>만큼 반복한 문자열을 return 하도록 solution 함수를 완성해보세요.</p>
24
+
25
+
<hr>
26
+
27
+
<h5>제한사항</h5>
28
+
29
+
<ul>
30
+
<li>2 ≤ <code>my_string</code> 길이 ≤ 5</li>
31
+
<li>2 ≤ <code>n</code> ≤ 10</li>
32
+
<li>"my_string"은 영어 대소문자로 이루어져 있습니다.</li>
33
+
</ul>
34
+
35
+
<hr>
36
+
37
+
<h5>입출력 예</h5>
38
+
<tableclass="table">
39
+
<thead><tr>
40
+
<th>my_string</th>
41
+
<th>n</th>
42
+
<th>result</th>
43
+
</tr>
44
+
</thead>
45
+
<tbody><tr>
46
+
<td>"hello"</td>
47
+
<td>3</td>
48
+
<td>"hhheeellllllooo"</td>
49
+
</tr>
50
+
</tbody>
51
+
</table>
52
+
<hr>
53
+
54
+
<h5>입출력 예 설명</h5>
55
+
56
+
<p>입출력 예 #1</p>
57
+
58
+
<ul>
59
+
<li>"hello"의 각 문자를 세 번씩 반복한 "hhheeellllllooo"를 return 합니다.</li>
60
+
</ul>
61
+
62
+
63
+
> 출처: 프로그래머스 코딩 테스트 연습, https://school.programmers.co.kr/learn/challenges
0 commit comments