Youaregivenonen×nn times nn×ncharacterwheels,anditisguaranteedthatniseven.Pleaseimplementthesefollowingoperations: Clockwise/Counter-clockwise rotate the x-th wheel y(1≤y≤109)y
You are given one n×nn times nn×n character wheels, and it is guaranteed that n is even. Please implement these following operations: Clockwise/Counter-clockwise rotate the x-th wheel y(1≤y≤109)y(1leq yleq10^9)y(1≤y≤109) times. Rotating one time means rotatting 90 degrees. The instruction is L/R x y, R indicates rotating clockwise and L indicates rotating counter-clockwise. For example, R 1 3 means rotate the 1-st wheel 3 times clockwise. Print all the wheels, the instruction is P.