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.
Similarly, the goal of the agent is not defined either. What are we trying to optimize? Maximum points gained ourselves? Minimum points lost ourselves? Maximum point advantage between us and the opponent? Not having our points dropped below a set threshold?
In general, getting the most benefit ourselves and sabotaging the opponents the hardest result in different strategies that cannot be simultaneously optimized. So depending on the goal the optimal strategy is, again, different, so this makes the optimal strategy undefined.
The pay-off matrix of the game is not defined, so the optimal strategy is not well-defined either, hence the kata is unsolvable.
Python 3.8 should be enabled.
Hello guys. I still don't understand why the result case is like that. Let me explain my view. The probability a number except 1 (because 1 and n have GFD 1 and it's prohibited for the problem) toward n where that number is a factor of n is 3 / n. For example, 21 (comes from 3 * 7) only have 4 factor. They are 1, 3, 7, and 21. And 1 is prohibited. So the total is 3. So the probability 3/n. Let me know my mistake, so I know why test case is different of my view. Lo siento, bad English.
nice!
Hi,
Would be nice if you explained exactly how the history is formated in the description!
Happy Coding
^_^
180 point was paid by the Code Adventurer Guild ;-)
great kata. harder (more time-consuming) than a 5 kyu, though. deserves a 4 imo.
This comment is hidden because it contains spoiler information about the solution
I have marked up the description a little. Hope you don't mind.
Needs random tests.
Got it
Wait :P
What I meant was, you should mention that the answer are returned as a percentage, not a decimal (which is how probability are dealt with almost all the time). After that, rounding to the nearest percent is okay, no need for 2 decimal places and being a percent at the same time.
Loading more items...