http://www.codechef.com/viewsolution/6607782

getting wa dont know why !

3 Likes

You need to find `gcd`

for all the recipes. Check for this case,

```
1
3 15 27 45
```

`gcd`

of all the recipes would be 3. If you calculate gcd(min,max) it gives 5, which does not divide 27. Answer for this case should be `5 9 15`

Nice Problem!

1 Like