← All problemsSign in

Aditya and his Investment

Aditya wants to invest in the real estate business. He likes polygon shaped houses but he can't analyze all the houses he's interested in investing though. Help him do this. You're given the expected cost per square foot of each house, and the co-ordinates of each house (in clockwise order) on a 2D graph. Find the largest potential value he can recieve. UPDATE: Use the integer value of your area

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