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.
You can write this: With double defensive power, if the fist defender in the trench wins, then it's attacking power is equal to the power remaining after the double defense or it's original power, whichever one's lower.
The code seems to have some problem.
My solution runs on other compilers but here it returns the wrong answer. What should I do?
I have a question
What happens when attackers enter the trench and get defeated?
suppose the attack is:
"ss "
"--|dzp|"
as d is 2 but also the first one in the trench it's defending power becomes 4 successfully defending.
but now what?
what will be it's attacking power?
will it be (4 - 2) or (2 - 2), as you've said "it's not allowed to use more points than usual."?