Problem
Problem URL : 수박수박수박수박수박수?
[1] Answer Code (18. 07. 22)
string solution(int n) {
string answer = "";
for(int i=1; i<=n; i++)
answer += (i & 1) ? "수" : "박";
return answer;
}
Problem URL : 수박수박수박수박수박수?
string solution(int n) {
string answer = "";
for(int i=1; i<=n; i++)
answer += (i & 1) ? "수" : "박";
return answer;
}