测评会员优惠活动进行中 · 开通 VIP,有效期内测评不限次 VIP 优惠中 · 测评不限次 立即查看

A8556. A polyline

编程题 普及/提高-

题目描述

![](/uploads/acgo/image/e1bb8df0f6915866_3e57d9eb924b.jpeg)

输入格式

The input contains two integers $a,b$ ( $1<=a<=10,0<=b<=2^{2·a}-1$ ) separated by a single space.

输出格式

Output two integers separated by a single space.

输入输出样例

输入 #1
1 0
输出 #1
0 0
输入 #2
2 15
输出 #2
3 0
输入 #3
4 160
输出 #3
12 12
上一题 去做题 下一题