As you said runtime answer is correct but on submission you get wrong answer so you have such cases which not satisfy your code
example - you written a code for a month of june , which has 30 days in a month but there is hidden case if the days increase with +1 like as on may
so, your code must satisfy all the cases
hope you will understand!
1 Like