Exemple #1
0
        public void freedPrisoners_4()
        {
            var prisonBreak = new PrisonBreak("[0, 1, 1, 1]");
            var result      = prisonBreak.FreedPrisoners();

            Assert.Equal(0, result);
        }
Exemple #2
0
        public void freedPrisoners_1()
        {
            var prisonBreak = new PrisonBreak("[1, 1, 0, 0, 0, 1, 0]");
            var result      = prisonBreak.FreedPrisoners();

            Assert.Equal(4, result);
        }
Exemple #3
0
        static void Main(string[] args)
        {
            var PrisonBreak = new PrisonBreak(args[0]);

            Console.WriteLine(PrisonBreak.FreedPrisoners());
        }