A very small typo. In case 7, you should print (n+1)“SU” and not (n+1)“SL”.
Your modified submission: https://www.codechef.com/viewsolution/15597359
Oops!!! missed that . Thanks for help.
Please dont forget to accept answers if your issue is resolved. Dont use award point feature as it takes away your karma.
Ok , i didn’t had any idea about accepting answers and karma points (as i’m new to codechef discuss ). Thanks for info.