Your objective is to buy exactly 100 farm animals with exactly 100 dollars. You must buy at least 1 of each animal. The costs: Cows: $10 each Pigs: $ 3 each Chickens: $0.50 each
Can you have change? Cause i can solve it, but i have every intention to have change.
Yes you can have change.
where are u stuck ?
I don't understand how many of which animal I should buy.
you familiar with solving diaphontine equations ?
Oh I got it!!! Hold on while i write i out.
I dont know what a diaphontintejfa;fdkjfadk; equation is.
90 cows 3 pigs 1 chicken is how i would do it. There are numerous ways to solve this.
this is a number theory problem, you will need to know how to solve a linear diaphantine equation if you want to solve it and not simply guess it/brute force
ok.
or 50 cows 10 pigs 40 chickens. this one makes it seem like u actually tried to solve it. cows are expensive XD
90 cows 3 pigs 1 chicken is not a solution cuz the total number of animals dont add up to 100
so is 50 cows 10 pigs 40 chickens
potatoes thank you for all of your help.
?? you dont wanto solve it ?
Nah I don't really want to solve it it's only a bonus problem otherwise I would have definitely done it myself.
try it, its just looking simple... but its really hard !
@ganeshie8 Yeah Thats my answer :) You should just do it even though its a bonus. At least you have the answer :)
here is the answer : 5, 1, 94
prove that its the answer
ofc when u have time+interest :) good luck !
Thanks for the help. :D
np :)
Your welcome :)
Join our real-time social learning platform and learn together with your friends!