A metal wire of resistance r is cut into