Opening your workspace…
Workspace/Coding room
Opening your workspace…
The mice have ordered a pantry floor made of biscuits, each exactly two squares long and one square wide. They will tile every bare square (.) exactly once. The stove feet (#) stay put. Biscuits lie flat, horizontally or vertically. Count the distinct tilings modulo 1000000007. Biscuits are identical. A floor with no bare squares has one finished arrangement. Practice rank · 2 kyu (Brewery estimate).
["...","..."]OUTPUT3Use three upright biscuits, or lay a pair sideways at either end.
[".#",".."]OUTPUT0One bare square would always be left for a crumb.
Sweep down the pantry. At each row remember which squares already hold the end of a biscuit from upstairs.
function solve(floor) { // Write your answer here. }
Tab inserts two spaces. Shift+Tab outdents. Use the arrow keys and Tab to choose a suggestion. Press Escape, then Tab, to leave the editor. Press Control or Command with apostrophe to run samples or with Enter to submit.
["...","..."]3