We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I also failed to pass those test cases until I noticed the contradiction in the challenge: the challenge both says to calculate the result modulo 10^9+7 and to calculate the result modulo 10000000007 (aka 10^10+7). I had the first; the last is what the test cases need.
Recursion: Davis' Staircase
You are viewing a single comment's thread. Return to all comments →
I also failed to pass those test cases until I noticed the contradiction in the challenge: the challenge both says to calculate the result modulo 10^9+7 and to calculate the result modulo 10000000007 (aka 10^10+7). I had the first; the last is what the test cases need.