Skip to main content
8-Gravel
November 13, 2022
Solved

Solve block not giving answer

  • November 13, 2022
  • 1 reply
  • 1073 views

Hello,

 

Why solve block is unable to give the maximum value?

Best answer by Werner_E

Are you looking for something like this:

Werner_E_1-1668368543974.png

Obviously a,b,c should be as small as possible while d and ss should be as large as possible.

 

1 reply

Werner_E25-Diamond IAnswer
25-Diamond I
November 13, 2022

Are you looking for something like this:

Werner_E_1-1668368543974.png

Obviously a,b,c should be as small as possible while d and ss should be as large as possible.

 

25-Diamond I
November 13, 2022

But in case a,b,c,d must be integers and you only want to cycle through the values with the given steps only, you may do it in a small program using nested for-loops:

Werner_E_0-1668372009067.png