본문 바로가기
C++

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

by 띰쥬 2025. 9. 3.
728x90
반응형
SMALL

#include <string>
#include <vector>

using namespace std;

int solution(int n, int t) {
    for(int i=0; i<t;i++)
        n *=2; 
    
    return n;
}

728x90
반응형
LIST

댓글