본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 11368번 A Serious Reading Problem

by 현장 2022. 10. 27.

-Code

while 1:
    c, w, l, p = map(int, input().split())
    if c == w == l == p == 0:
        break
    print(((c ** w) ** l) ** p)