⚡ Build the skills to land top-paying quant jobs. Offer ends in 30d 01h 34m 49s30 days 1 hours 34 minutes 49 seconds.
The 6-by-6 grid below can be split into six L-shaped hooks, one inside the next:
At each step, the hook may use any of the four corners of the square that remains.
Find where the hooks go, then fill in digits:
Clues. In a row or column, each maximal run of consecutive filled cells is read as one number, starting from the side where the clue is written. For example, the row 3 3 . 4 1 . reads as the numbers 33 and 41 from the left, and as 14 and 33 from the right.
Rows are r1..r6 from top to bottom and columns are c1..c6 from left to right. Clues above the grid are read downward, clues below it are read upward, clues on the left are read rightward and clues on the right are read leftward.
2220 2010
+----+----+----+----+----+----+
396 | | | | | | |
+----+----+----+----+----+----+
| | | | | | |
+----+----+----+----+----+----+
| | | | | | | 456
+----+----+----+----+----+----+
| | | | | | |
+----+----+----+----+----+----+
| | | | | | | 9
+----+----+----+----+----+----+
| | | | | | | (5)
+----+----+----+----+----+----+
(5)In words: r1 from the left has product 396. r3 from the right has product 456. r5 from the right has product 9. r6 from the right has GCD 5. c2 from the bottom has GCD 5. c3 from the top has product 2220. c6 from the top has product 2010.
Question. In the completed grid, the empty cells form several connected groups. What is the product of the areas of these groups?
Answer format: a single positive integer.