728x90
반응형
문제출처:https://school.programmers.co.kr/learn/courses/30/lessons/12925
풀이:
return int(n)
자바로도 풀어본다.
import java.math.BigInteger;
class Solution {
public int solution(String s) {
BigInteger bi = new BigInteger(s);
return bi.intValue();
}
}
반응형
댓글