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
This solution is good but I think it is still based on Lagrange Four Square Theorem since you are sure that the answer must be 1, 2, 3, or 4.
Got it. The main problem is that my algorithm needs to be optimized.
But the output doesn't tell me that my code exceeds the time limit, which is very annoying :(
The output window said I have passed all the tests (10 passed, 0 failed) but I can't submit my result.
Can anyone help?