Noob Farmer
CodeChefOpen on judge ↗
A Farmer named Suras is having a farming land in the shape of a triangle. Now this land(triangle shaped) is divided into the six regions as shown in the figure. Different regions have different crops grown on it. You are given the area of the three regions in the land , namely area(△UPZ) , area(△ZPW) and area(△WPY). And you will be also given the price per unit area required for harvesting. Now th
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