class Solution {
public String solution(int n) {
String answer = "";
return answer;
}
}
해결법
방법 1
class Solution {
public String solution(int n) {
String answer = "";
for (int i = 1; i <= n; i++) {
if (i % 2 == 0) {
answer += "박";
} else {
answer += "수";
}
}
return answer;
}
}
수박수박수박수박수박수? Lv. 1