Search posts...
n
t
class Solution { public int solution(int n, int t) { int answer = n; // t번 반복하여 2배씩 증가 for (int i = 0; i < t; i++) { // answer에 2를 곱하기 answer *= 2; } return answer; } }
Nakyeom's Study