Author Topic: [Challenge] 28 = n1*8 + m1*3 + n2*5 + m2*4  (Read 419 times)

0 Members and 1 Guest are viewing this topic.

well20152016

  • Newt
  • Posts: 130
[Challenge] 28 = n1*8 + m1*3 + n2*5 + m2*4
« on: February 12, 2022, 09:57:49 AM »
Known: 28 = n1*8 + m1*3  + n2*5 + m2*4   (n1< 4   m1<6  n2< 4    m2< 6)
target= 28
vector<vector<int>> v( (8 4) (3 6) (5 4) (4 6)) //(value  number)  v.size()  Is a positive number greater than 0,1,2,3,4,5。。。。。。。

(8 3 5 4) x (3 0 0 1) = 28
(8 3 5 4) x (2 4 0 0) = 28
(8 3 5 4) x (2 1 1 1) = 28
(8 3 5 4) x (2 0 0 3) = 28
(8 3 5 4) x (1 5 1 0) = 28
(8 3 5 4) x (1 4 0 2) = 28
(8 3 5 4) x (1 2 2 1) = 28
(8 3 5 4) x (1 1 1 3) = 28
(8 3 5 4) x (1 0 0 5) = 28
(8 3 5 4) x (0 5 1 2) = 28
(8 3 5 4) x (0 4 0 4) = 28
(8 3 5 4) x (0 3 3 1) = 28
(8 3 5 4) x (0 2 2 3) = 28
(8 3 5 4) x (0 1 1 5) = 28
(8 3 5 4) x (0 0 4 2) = 28
« Last Edit: March 06, 2022, 06:20:57 AM by well20152016 »