← All problemsSign in

Maximum Building I

CSESAdditional Problems IOpen on judge ↗

You are given a map of a forest where some squares are empty and some squares have trees. What is the maximum area of a rectangular building that can be placed in the forest so that no trees must be cut down? Input The first input line contains integers n and m: the size of the forest. After this, the forest is described. Each square is empty (.) or has trees (*). Input Print the maximum are

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start