Ad
  • Default User Avatar

    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.

  • Default User Avatar

    The code seems to have some problem.
    My solution runs on other compilers but here it returns the wrong answer. What should I do?

  • Default User Avatar

    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."?