Algorithm/lanqiao/series13sheng/tc_ac.py

14 lines
193 B
Python
Raw Normal View History

2022-04-09 12:19:47 +08:00
import io
import sys
sys.stdin = io.StringIO('A5')
ans = [1189, 841]
s_in = input()
a = int(s_in[1:])
for i in range(a):
ans[0], ans[1] = ans[1], ans[0] // 2
print(ans[0])
print(ans[1])