You're a member of the custodial staff at a large convention centre. You came in for your shift this morning to find that the contractors painting the ceiling overnight had an accident and now there's a huge paint stain on the floor. It's already dried. The boss wants you to do something about it.
Fortunately, the convention centre has a huge stock of square carpet tiles in a range of sizes that you can put down on the floor to cover the stain. These carpet tiles are so thin that you can overlap them as much as you want without creating a tripping hazard, but you know from past experience that the boss is really picky about how you place them.
The floor of the convention centre is divided into a grid such that each square in the grid is
The input will contain
Your job is to output a single integer
Note that the sample input below only contains
Sample Input
-----
--***
-***-
-**--
-----
----------
--**------
--****----
--******--
--******--
---*****--
---*****--
-----**---
-----**---
------*---
Sample Output
3
2 1 2
1 2 2
1 4 1
7
3 4 4
2 2 3
7 5 2
3 3 4
1 2 2
2 3 3
9 6 1
Notes on Grading
Your output will be scored by a judging app which will assign a base score of
Be sure that your data file matches the required output format exactly. The judging app might be able to recover from badly formatted or invalid data, or it might not. If your data is not formatted exactly correctly, you might get some points or you might get nothing.
Question Development Team
Sam Scott (Sheridan College)
Kevin Forest (Sheridan College)
Stella Lau (University of Cambridge)
Dino Baron (University of Waterloo)
Greg Reid (St. Francis Xavier Secondary School, Mississauga)
John Ketelaars (ECOO-CS Communications)
David Stermole (ECOO-CS President)
Educational Computing Organization of Ontario - statements, test data and other materials can be found at ecoocs.org
Comments