public void freedPrisoners_4() { var prisonBreak = new PrisonBreak("[0, 1, 1, 1]"); var result = prisonBreak.FreedPrisoners(); Assert.Equal(0, result); }
public void freedPrisoners_1() { var prisonBreak = new PrisonBreak("[1, 1, 0, 0, 0, 1, 0]"); var result = prisonBreak.FreedPrisoners(); Assert.Equal(4, result); }
static void Main(string[] args) { var PrisonBreak = new PrisonBreak(args[0]); Console.WriteLine(PrisonBreak.FreedPrisoners()); }