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

gov's avatar
Dec 03, 2024
[프로그래머스/JAVA]세균 증식
Contents
문제풀이

문제

notion image

풀이

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

goho