Please help in Bouquet (Easy Version)

Revision en1, by CandidFlakes, 2024-07-24 08:38:15

This is the problem. This is my WA attempt.

What I am tying to do is first count how many maximum can be formed by x and x+1 each. Then, check if it is possible to decrease some amount of x+1 and increase some amount of x so that the overall answer increases. Please help me find where I am doing wrong?

I will be thankful for any help!

Tags debugging, wrong answer, edge case

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English CandidFlakes 2024-07-24 08:38:15 497 Initial revision (published)