Skip to content

Commit 15942a2

Browse files
committed
Solved: 수박수박수박수박수박수
1 parent 1970668 commit 15942a2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// 수박수박수박수박수박수? :12922
2+
// https://school.programmers.co.kr/learn/courses/30/lessons/12922
3+
4+
function solution(n) {
5+
return '수박'.repeat(n / 2) + (n % 2 ? '수' : '');
6+
}

0 commit comments

Comments
 (0)