Codejam 2020 problem A

codejam qualification round
problem A
[Codejam 2020 Problem A - Vestigium (7 pts) - Qualifications Round - YouTube]

Check out this detailed solution of Codejam 2020 and get your doubts cleared.