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.
This comment is hidden because it contains spoiler information about the solution
:O I didn't know you could do that
that's cheating! haha, atleast for me it is, i prefer to make more myself, and learn as much as i can!
This is amazingly simple!
Bruh.. That's creazy, I'm learning so much...👍
This comment is hidden because it contains spoiler information about the solution
obviously cleaner i did this as well but when it comes to the low level is there more resources used by the computer?
it does the same functionality, it just looks way way cleaner
This comment is hidden because it contains spoiler information about the solution
exactly
Again, the solution like this fails for an example from the text n=695, p=2.
The error comes from static_cast of double power to int.
See an example:
cout << std::pow(5,4) << ' ' << static_cast(std::pow(5,4)) << '\n';
I forgot about stringstreams. This is realy smart.
This comment is hidden because it contains spoiler information about the solution