Hello, I was practicing problems of the Beginner Section, and I have tried to submit a solution for the following problem:-

Problem : https://www.codechef.com/problems/BUGCAL

And My Latest Solution : https://www.codechef.com/viewsolution/16428424

In the IDE this solution ran successfully and I think that I have taken care of all the constraints but somehow the solution is still not accepted. Can please somebody point where and what I am doing wrong or missing out.

And for the Subtask #1 (30 points): 1 ≤ a, b ≤ 9 should the answer be 0 if a=1 and b=9?

It would be helpful if somebody answers this.

Thank You