Type: Default 1000ms 256MiB

铺瓷砖

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目描述

用红色的1*1和黑色的2*2两种规格的瓷砖不重叠地铺满n*3的路面,求出有多少种不同的铺设方案。

输入格式

一行一个整数n,0<n<1000。

输出格式

一行一个整数,为铺设方案的数量模12345的结果。

2
3

A班第三天测试

Not Attended
Status
Done
Rule
Ledo
Problem
9
Start at
2025-7-23 19:00
End at
2025-7-23 21:00
Duration
2 hour(s)
Host
Partic.
10