Battle of Winterfell
CodeChefOpen on judge ↗
Winterfell is attacked by the Night King. House Stark is in danger. In order to capture winterfell, the white walkers need to attack it with all its power. But winterfell is a large fort $A$ of dimensions $M * N$ and white walkers have a small army which can only attack area $B$ of dimensions $P * Q$ at a time. Winterfell can only be captured if they attack every possible area of it. The problem
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.
Sign in to chat with the tutor and save your progress.
Sign in to start