Farmer and field
CodeChefOpen on judge ↗
A Farmer has rectangular field. He cuts his crop and he want to know how much production is obtained. You are given two opposite corner points of the field. First Point(x1,y1) and Second Point(x2,y2). Help him!. Your task is to calculate the Production of crops in KGs. NOTE : 1 unit square = 1 kg Input - First line Contains TestCase T. - Each next line contain four integer x1,x2,y1,y2. Out
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