-Code
xZero, n = map(int, input().split())
for i in range(n):
if xZero % 2 == 0:
xZero = (xZero // 2) ^ 6
else:
xZero = (xZero * 2) ^ 6
print(xZero)
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 26941번 Pyramidbygge (0) | 2023.03.28 |
---|---|
[백준/파이썬] 27918번 탁구 경기 (0) | 2023.03.27 |
[백준/파이썬] 5292번 Counting Swann’s Coins (0) | 2023.03.25 |
[백준/파이썬] 24609번 Overdraft (0) | 2023.03.24 |
[백준/파이썬] 26198번 Chronogram (0) | 2023.03.23 |