알고리즘/프로그래머스
프로그래머스 [코딩테스트 입문 100] 세균 증식 (Python)
울우리우리
2022. 11. 16. 22:41
비트연산자(시프트 연산자)를 사용하여 간단하게 풀 수 있음.
자세한 내용은 https://dojang.io/mod/page/view.php?id=2460 참고.
def solution(n, t):
answer = n << t
return answer