Fence the field
CodeChefOpen on judge ↗
Govind needs to build a steel fence around a rectangular field. He specifies the dimensions, X and Y, the length and width of the ground in meters. N is the number of times the wire needs to be wounded around the ground. Calculate the amount of steel required in kilograms, provided that K is the linear density in Kg/m. ### Input -The first line of input should consist of an integer T, denoting 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