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.
Yes, factorial is easy to overflow of int range, and find 563 not pass. So programming based on test result.
amazing
This comment is hidden because it contains spoiler information about the solution
Yes, it is n^3 in fact.
I think it is incorrect
I find this:
So I think there are some differences between random_tests and fixed_tests.
C++
Expected: equal to 302163 63322 36067 437071 73921 226472 37085 484016 13974 449034 222199 247517 378027 52938 95454 129592 93962 7995 329676 145988
Actual: 302163 63322 36067 437071 73921 226472 37085 484016 13974 449034 222199 247517 378027 52938 95454 129592 93962 7995 329676 145988
And I run it on CodeBlock, add
The output is:
302163 63322 36067 437071 73921 226472 37085 484016 13974 449034 222199 247517 378027 52938 95454 129592 93962 7995 329676 145988
302163 63322 36067 437071 73921 226472 37085 484016 13974 449034 222199 247517 378027 52938 95454 129592 93962 7995 329676 145988
same
So what can I do?