← All problemsSign in

THE BANK JOB

A thief tries to rob a bank at night . He uses a ladder to enter in the building of a bank. Building is h metres high. And the distance between the building and the base of the ladder is p metres . Ladder length is L metres. The ladder is inclined at an angle A. Calculate the value of tan nA. where, n is a positive integer. Constraints: 0 Input Format First line contains number of test cases T

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