프로그래머스 - 세균 증식

parkkhee·2023년 2월 26일
0
class Solution {
    public int solution(int n, int t) {
        int answer = n;
        
        for(int i=0; i<t; i++){
            
            answer*=2;
            
        }
        
        return answer;
    }
}
profile
순우리말 백엔드 개발자

0개의 댓글