why code chef is giving wrong answer for my code…my code is giving me the correct output on my compiler. please check whats wrong…here is my code CodeChef: Practical coding for everyone
The Question says :
The chef therefore would like to make a reduced version of the recipe which has the same ratios of ingredients, but makes less food.
so if the
input : 22 33 44 55
output : 2 3 4 5
but according to you
output : 22 33 44 55 and not 2 3 4 5
You are just finding the smallest divisible element and doing the rest of the things.
1 Like
thank you…its done