I want a php code for this problem.
x*n1 + y*n2 + z*n3 + c*n4 ... = T
This is an equation of multiple unknow variables (x,y,z,v...)
I have n1,n2,n3,n4.... they're given.
I have also T, wich is the toal, adn it's given too.
And the problem, is to find x,y,z,c ... these are the unknown numbers.
The basic logic solution is to try all combinations of x,y,z,c ... But I want another solution, speed is a key.