← All problemsSign in

Attack of Titans

The Shinigami district is vulnerable to Titans. The people of Shinigami district have t seconds before the Titans' invasion. The houses in district of Shinigami form a binary tree numbered from 1 to 2n. The ancient maps of this district show a secret escape tunnel beside a house m.Currently there are p people hiding in house h. If 1 person can run with speed s then find the maximum number of peopl

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