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.
Original
Java
Kata was 8kyu. Some translations may or may not deserve to be different, but CW does not work that way.In brief: you give away the solution. I don't know what you are doing in your code, and you say nothing about the failures. Make sure you round the result as it is required in the description.
This is not just a math formula, it is a full calculation process. By the way, the formula isn't even in the description, that must be for some reason. I marked your message with a spoiler flag. However it's quite unlikely someone who didn't solve the kata will answer you.