class Solution {
public int solution(String s) {
int answer = 0;
answer = Integer.parseInt(s);
return answer;
}
}
'Algorithm > 프로그래머스' 카테고리의 다른 글
[Lv. 1] 하샤드 수 (0) | 2023.05.01 |
---|---|
[Lv. 1] 정수 내림차순으로 배치하기 (0) | 2023.04.27 |
[Lv. 1] 자연수 뒤집어 배열로 만들기 (0) | 2023.04.24 |
[Lv. 1] 문자열 내 p와 y의 개수 (0) | 2023.04.24 |
[Lv. 1] x만큼 간격이 있는 n개의 숫자 (1) | 2023.04.21 |
댓글