As a cylinder is lifted from the first floor to the second floor, there is decrease in the atmospheric pressure on the gas and it expands. Therefore, some work is done by the gas on its surroundings. Work done on the gas is zero.
Work done by the gas, W = P (positive)
The increase in the internal energy and temperature of the system will depend on the types of the walls of the system (conducting or insulating).