Help me in solving MEBA,DLSB AND SQING problem

My issue

can anyone solve the program in c

Problem Link: https://www.codechef.com/problems/MEBA
 Problem Link:https://www.codechef.com/problems/DLSB
 Problem Link: https://www.codechef.com/problems/SQING

plsssssssssssssssssssssssssssssssss

anyone replyyy