I am not able to understand the question…
how is piyush supposed to move and how will the strength alter?
what is the significance of k?
In case of Yes what is that number getting printed?
Plzz help…i find the language of this ques very confusing
Piyush and the Magical Park
intially pyush has some energy and this energy is needed to be positive every time now when pyush walk it losses 1 unit of energy and when he encounter . then losses and simply gain 5 amount of energy for another symbol
now if it encounter a block sign then it will switch to next row and switching didnt take any energy
so now u have to calculate wheather pyush will get out of park or not remember to move he need positive energy all time and if come out then what will be the energy
1 Like
@Prajawal-Pandey-2140320206067139 here is the link in which sample test case explained in brief link.
2 Likes