给定非负整数a算2的a次幂加上a的和 除以a的余数输入:2预期输出:0
a = int(input()) res = (2 ** a + a) % a print(res)
shape函数可以查看A的类型,sum可以对所有元素求和