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.
https://stackoverflow.com/questions/10750057/how-to-print-out-the-contents-of-a-vector
How can I print the input of the test?
Your code is failing the 9th test, labeled Test 8 (I though it was another one), try printing the input and you'll see why, it's easy to fix. It's not related to same multiplicity and your code is ok about deleting the values.
This comment is hidden because it contains spoiler information about the solution
Yeah, a good point. Maybe just
return res*2 - n% n**0.5?0:1
is enought.What about 25?