Problem 1: Number of Tilings, (K Narayan Kumar, CMI)

You have to tile a room that is two units wide and N units long. You have with you two types of tiles: a rectangle that is one unit wide and two units long, and an L-shaped tile covering three square units. Here are pictures of the two types of tiles.

CPU Timelimit: 3 seconds
Memory limit: 64M
Grading style: ioi
Register Now