i am new to codechef help me

i have solved this problem

and submitted, but its showing wrong, time exceed, runtime error
why?

i have tested it , my solution is 100% correct, please help me

Then it just is not correct. Maybe you’re just misunderstanding something about the problem, or are not following the I/O exactly?

Anyway, you won’t get much help about an ongoing contest. You’ll have to manage by yourself.

4 Likes

but inputs and outputs are perfect

//