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.
It seems to be timeout
Thanks!
Thank you for your reply. I changed 2 lines of my code and it works now. I don't know if it is because of the difference between c++14 and c++11.
code failed:
code that is accepted:
287 guys passed the C++ kata so I don't think there can be an error:-) If there was one, somebody else should have had a problem. Nevertheless It would be better if you gave the input.
For the string
"311161 123053 192411 242336 292316 90806 237453 224791 281085 39016 124526 226219 133683 109529 311686 245429 426860 285474 487608 497517"
the result given by my solution is:"311161 123053 192411 39016 124526 242336 226219 292316 90806 133683 237453 281085 224791 311686 109529 245429 426860 285474 487608 497517"
which is correct.I am afraid you could have mutated the input.
Lang: c++ 11/14
Look at the result above.
So, how could 242336(20) comes before 39016(19)??
And:
The two numbers are equal, but how could 242336 comes before 124526?
Using a primes cache accelerates the iteration.
Isn't the isPrime function suspectable?
Hi, I use the same thought with you. But I think the result should plus one.