Help with Hackerearth problem

Revision en1, by pronoobchamploser, 2020-08-01 16:27:38

Can somebody please explain how to solve this problem?

Editorial is horrible and it's impossible to understand how it's solved.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English pronoobchamploser 2020-08-01 17:24:30 11 Tiny change: ''s solved.' -> ''s solved.\n\nThanks.'
en1 English pronoobchamploser 2020-08-01 16:27:38 255 Initial revision (published)