+ 1
math problem
Anyone can help me?đ Enter n x+y*2+z*5=n print number of answer (x,y,z) ex:input 5 output 4(5,0,0)(1,2,0)(3,1,0)(0,0,1)
6 Answers
+ 2
Any limitations for x, y, z?
+ 1
Good challenge.
This code can solve it, but I've been problems with it.
https://code.sololearn.com/WsH6sKJSbbcA/?ref=app
https://www.sololearn.com/discuss/1372325/?ref=app
0
I think it's asking how many combinations of xyz will result n=5 and to list those combinations.
0
Janningâ no,enter n and print number of answers xyzđ„ so if you input 5 the output is 4
0
Yes, because there are four possible combinations of xyz where n is five.
0
no limit!