cutting recipies

answer
wrong

#1

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 http://www.codechef.com/viewsolution/4283968


#2

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.


#3

thank you…its done :slight_smile: