Input
The first line is a number with the height of the map, which will be followed by that amount of lines. These lines describe the terrain of the competition.
Then, there will be a list of participants, where each participant will start with the keyword "Participant", followed by the name and the number of actions that they do during the race. Each action is defined by an integer representing the horizontal position at which the action is executed and the name of the action. The horizontal position starts at 0 and will be always less than the length of the race map lines.
There are 3 types of actions: - ramp-up - ramp-down - jump - loop
Output
For each participant, the map describing the path that they follow and their score.
Input
7 | __ | _ / \ | / \ / \ | _____ ____\_/___\_____\__ | _/__ ____ / \\ \ | __/____\____________\_/_\____/_____| Participant Johnny Action 1 ramp_up Action 3 ramp_up Action 9 jump 3 Action 17 loop Participant Emma Action 1 ramp_up Action 3 ramp_up Action 9 jump 2 Action 13 jump 1 Action 27 jump 10 Participant Colton Action 1 jump 3 Action 6 ramp_down Action 10 jump 4 Action 21 loop Participant Sakura Action 1 ramp_up Action 21 loop Action 25 loop Action 26 loop Action 27 loop Action 28 loop
Output
_ ... / \ _____ ___\_/____________ _/ __/ ____| Johnny score is 73 .. . .......| _____ __ _____________ _/ __/ Emma score is 75 _ ...__ .... / \ __ \___ _____\_/____________| Colton score is 13 __ / \ / \ _\ \ ____ / \\ \ __/ _____________\_/_\____/_____| Sakura score is 128
Input
6 | ________ _____ __ | ___/ _______ / \ | ____ ________/ ____ \ / \ | / \ ________ ___/ \__ \ / | __/______\___________________________________________________\__/__________| Participant Natasha Action 1 ramp_up Action 7 jump 7 Action 20 ramp_up Action 24 ramp_up Action 33 jump 2 Action 62 loop Action 63 loop Participant John Action 1 ramp_up Action 7 jump 4 Action 19 jump 6 Action 30 jump 2 Action 38 jump 4 Action 44 ramp_up Action 49 ramp_down Participant Alex Action 1 ramp_up Action 7 jump 5 Action 20 ramp_up Action 24 ramp_up Action 33 jump 4 Action 41 jump 6 Action 63 loop
Output
.. ________ __ ....... ___/ / \ ____ ______/ / \ / ___ \ / __/ ______________________\__/__________| Natasha score is 141 .... ____ .... ____ / ...... ..______ __/ \__ __/ ________ _____ ______________________| John score is 57 .... ...... ________ ____ __ ..... ___/ ______ / \ ____ ________/ / \ / \ / __/ _______\__/__________| Alex score is 190