[프로그래머스] Level0. 세균 증식

Benjamin·2023년 2월 9일
0

프로그래머스

목록 보기
15/58

Troubleshooting


Math.pow()의 입출력은 모두 double형이다... 몰랐던 사실!

내 풀이

class Solution {
    public int solution(int n, int t) {
        return n*(int)Math.pow(2,t);
    }
}

0개의 댓글