Help me in solving LPYAS157 problem

My issue

soluion

My code

#include <stdio.h>

int main() {
	// your code goes here

}


Learning course: Algorithmic Problem Solving
Problem Link: https://www.codechef.com/learn/course/klu-problem-solving/KLUPS00A/problems/LPYAS157