Wrong answer FIBEASY

is my logic correct or not?
here is my solution https://www.codechef.com/viewsolution/26629715

Sir, Can you tell me what is wrong it would be very helpfull

try the simple testcase

1
1

ouput should be 0 . your code will give 1 handling this will give AC

2 Likes

Done thanks:pray::pray::pray: