In some nations there are recommendations or laws on how to form emergency corridors on streets that have multiple lanes per direction. (In the following we only consider the lanes going in the direction we are travelling.) These are the rules that hold in Germany:
- If there is only one lane, everyone should drive to the right such that the rescue vehicles can pass on the left.
- If there are two or more lanes, the cars on the left most lane should drive to the left, and everyone else should move to the right.
Given the number
N>0 of regular lanes, output the layout of the lanes when an emergency corridor is formed using a string of
N+1 ASCII characters. You can use any two characters from ASCII code
33 up to
126, one to denote the emergency corridor, and one for denoting the cars. Trailing or leading spaces, line breaks etc are allowed.
Here we are using
E for the emergency corridor, and
C for the cars.
N Output 1 EC 2 CEC 3 CECC 4 CECCC 5 CECCCC 6 CECCCCC etc