← All problemsSign in

Cactus

Smith bought a triangular piece of land in Rajasthan. The land contains a lot of cacti and he wants to get them removed. Land being triangular in shape makes it difficult for him to determine which cacti are present in his land. Your program will be given the coordinates of the vertices of the triangular land and the coordinates of all the cacti. Determine the area of land belonging to Smith and

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