Interesting HackerRank problem

Revision en3, by confusedman, 2020-07-03 18:11:03

Found this HackerRank problem recently, very similar to the Div2 A problem in Educational Round 89 but a more general form.

It seems that these kinds of problems can be solved with something similar linear programming? at least for the Div2 A problem all we had to do was identify the constraints and output the minimum of them. Does anyone know exactly what topic these problems come under and how to find more like them?

Here's the statement for those who don't want to click the link:

HackerRank Problem Statement

Would appreciate if anyone can give ideas on how to solve specifically this problem and problems similar to it.

Tags #question, #help, #general advise

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English confusedman 2020-07-03 18:11:03 0 (published)
en2 English confusedman 2020-07-03 18:08:56 33 Tiny change: 'Input:**\ng, s and' -> 'Input:**\n\ng, s and' (saved to drafts)
en1 English confusedman 2020-07-03 17:49:46 1383 Initial revision (published)