Notice
Recent Posts
Recent Comments
Link
«   2025/04   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
Archives
Today
Total
관리 메뉴

KSI일기장

프로그래머스 세균 증식(자바) 본문

JavaAlgorithm

프로그래머스 세균 증식(자바)

MyDiaryYo 2023. 11. 27. 17:57

 

 

 

class Solution {
    public int solution(int n, int t) {
        for(int i=1; i<=t; i++){
            n*=2;
        }
        return n;
    }
}