반응형
https://programmers.co.kr/learn/courses/30/lessons/12925
class Solution {
//뭐지...String을 int로...Integer.parseInt....이거만 쓰면되나....
public int solution(String s) {
int answer = Integer.parseInt(s);
return answer;
}
}
반응형
'코딩테스트 > 프로그래머스 1단계' 카테고리의 다른 글
프로그래머스 1단계 - 약수의 합 (0) | 2021.05.05 |
---|---|
프로그래머스 1단계 - 수박수박수박수박수박수? (0) | 2021.05.03 |
프로그래머스 1단계 - 소수 찾기 (0) | 2021.05.03 |
프로그래머스 1단계 - 가운데 글자 가져오기 (0) | 2021.04.29 |
프로그래머스 1단계 - 음양 더하기 (0) | 2021.04.29 |