n = int(input()) num = 0 a = 3 b = 3 f = [a, b] for i in range(n-2): a, b = a+b, a f.append(a) print(f) nums = 0 for i in range(n-1, -1, -1): nums = (nums+f[i]) * 2 print(nums)
相关推荐
招聘动态
查看更多
字节跳动
2025校园招聘
阿里云管培生
2025届校园招聘
快手Star
2025届招聘
快手
销售类投递专区