当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。
Given a square of size n + 2 with a square hole of size n − 2 in the middle (see the figure below), calculate the number of different ways to tile it with dominoes of size 1 × 2.
The input consists of multiple test cases. Each test case contains only one integer n (3 ≤ n ≤ 104). Process util EOF is met.
For each test case, output the desired number in decimal using the comma as the thousand separator.
3 50
196 401,520,777,816,387,690,468,975,409,805,843,797,460,004
时间上限 | 内存上限 |
10000 | 131072 |