为孩子注入编程算法基因
Toggle navigation
Home
AIAssistant
Problems
Status
Rating
Group
Barrier
Contests
Wiki
Login
Home
Status
87398
Run ID
Author
Problem
Lang
Verdict
Time
Memory
Code Length
Submit Time
87398
sh25_wanghy
Hanoi双塔问题
Python3
Accepted
28 MS
3676 KB
102
2026-04-17 14:50:09
Tests(10/10):
n = int(input()) result = (1 << (n + 1)) - 2 # 位运算左移相当于乘以 2^(n+1) print(result)
Judgement Protocol: