Cody

Problem 44474. I hope to lose weight healthily...

Created by Noriko HOUNOKI in Community

In order to reduce weight healthily, weight will be reduced by 4% every month.

Please calculate how many months it will take by achieving the target weight.

eg. My weight now is 54.3 kg, and I want to lose weight to 46.5 kg. It will take 4 months;

input : before=54.3,after=46.5 >>> output : month = 4

Solution Stats

61.9% Correct | 38.1% Incorrect
Last solution submitted on Mar 04, 2019

Solution Comments