본문 바로가기

Coding Test/프로그래머스

[프로그래머스/자바] 세균 증식

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