Probliem Link:
http://lightoj.com/volume_showproblem.php?problem=1414
My Solution Link:
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 ?
yes please, I can not find the loop hole
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
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.
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
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
okk I will reopen this again