Wednesday, October 8, 2014

ACM 1991. The battle near the swamp / Битва у болота

If the number of bullets in the Ith pack is more than the total number of monsters K than there will be K-A[i] bullets left , otherwise there will be A[i]-K survivors. The rest is just input, sum and output.


       FULL SOURCE CODE

No comments:

Post a Comment