프로그래머스 - 세균 증식

차관호·2023년 3월 7일
0

문제링크 - 프로그래머스 - 세균 증식

class Solution {
    public int solution(int n, int t) {
        int answer = n* (int)Math.pow(2,t);
        return answer;
    }
}
profile
안녕하세요 :-)

0개의 댓글