세균 증식

han.user();·2023년 3월 31일
0

프로그래머스

목록 보기
13/87
post-thumbnail

class Solution {
    public int solution(int n, int t) {

        for (int i = 0; i < t; i++) {
            n = n * 2;
        }
        return n;
    }
}
profile
I'm still hungry.

0개의 댓글