public class Solution {
public string solution(int n) {
string answer = "";
for(int i=0;i if(i%2==0) answer=answer.Insert(i,"수");
else answer=answer.Insert(i,"박");
}
return answer;
}
}
'코딩연습 > 프로그래머스 코딩테스트' 카테고리의 다른 글
[프로그래머스]Level1 자릿수더하기 (0) | 2020.10.08 |
---|---|
[프로그래머스]leve1 서울에서 김서방 찾기 (0) | 2020.07.14 |
[프로그래머스(C#)]level1 약수의 합 (0) | 2020.07.13 |
[프로그래머스C#]leve1 문자열을 정수로 바꾸기 (0) | 2020.07.13 |
[프로그래머스 level1]가운데 글자 가져오기 (0) | 2020.07.03 |