using System; namespace tstruct { class Program { struct Dog { public int hp; public int atk; public bool IsDead() { return hp<=0; } } static void PrintHP(Dog d) { Console.WriteLine("hp: {0}", d.hp); } static void Attack(Dog attacker, ref Dog defender) { if(attacker.hp<=0) return; if(defender.hp > attacker.atk) defender.hp -= attacker.atk; else defender.hp = 0; } static void SupAttack(Dog attacker, Dog [] dogs) { for(int i=0; i