Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Reraised above ~~
Hey, sorry for being absent. I was busy moving to another city.
I do not know how or if i can give you edit rights. What would be your suggested instructions?
Greetings and stay safe
Just in case anyone else would run into it, the problem is you writing too much to the stdout. Remove all printing functions.
@hobovsky Your comment is actually a little bit misleading. You need to calculate n! because it's not possible to rewrite the formula so it doesn't contain n!.
What you can do is rewrite the formula in a way you can calculate the result more efficiently but you always have to calculate n!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
it's not about DP, here. You need even more efficient.
Me, too. I programmed using dp, and timeout occured.
I don't know why, so I unlock solution, copy and paste the "best practice" code.
!!
The best practice code is occuring execution timeout.
I think some test cases are inproper.