Getting WA verdict in the below problem

Probliem Link:
http://lightoj.com/volume_showproblem.php?problem=1414

My Solution Link:

Hey @tasfikrahman007 the problem link you have sent to me requires an account on that site.

Here is the problem in pdf -> http://lightoj.com/volume_showproblem.php?problem=1414&language=english&type=pdf but you can not submit

Hmmm, I guess I can only help you with logic and can only debug your code. I guess will that work for you :slight_smile:?

yes please, I can not find the loop hole :frowning:

hey @tasfikrahman007, i have compiled the code for one test case which was
March 1, 2004
February 29, 2004
it has one leap day i.e.,(February 29, 2004) but in your output it was showing case 5: 0
This might be a side case. Handle this also :smile:

but is not it backward?? the start date should come first right??

Your code was only failing this case , but as mentioned in question that second date can’t be earlier then first date. So as per me, your code is appropriate for this problem statement.:slight_smile:
As I have debugged it , and it’s working fine for each and every function. Therefore no error in it. Might be some fault test cases from there side.

but still getting wrong answer :frowning:

There might be some false test cases @tasfikrahman007 on their site as your code works perfectly fine .

but there are many accepted answers

As per my knowledge it works fine. Moreover you can revoke your doubt so that much experienced TA from me can help you to resolve it :blush:

okk I will :slight_smile: reopen this again