from problems.aising2020d import main
from tests.si_so_test_case import SISOTestCase


class Test(SISOTestCase):
    def test_main(self):
        self.helper("""3
011""", """2
1
1
""", main)

    def test_main2(self):
        self.helper("""23
00110111001011011001110""", """2
1
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
3
""", main)

    def test_main3(self):
        self.helper(f"""200000
{"10" * 100000}""", """a
""", main)

1b765da7d3d5a2ec2b70f49cf05fd8ccc03d6841
<mask token>


class Test(SISOTestCase):
    <mask token>
    <mask token>

    def test_main3(self):
        self.helper(f"200000\n{'10' * 100000}", 'a\n', main)

<mask token>


class Test(SISOTestCase):

    def test_main(self):
        self.helper('3\n011', '2\n1\n1\n', main)
    <mask token>

    def test_main3(self):
        self.helper(f"200000\n{'10' * 100000}", 'a\n', main)

<mask token>


class Test(SISOTestCase):

    def test_main(self):
        self.helper('3\n011', '2\n1\n1\n', main)

    def test_main2(self):
        self.helper('23\n00110111001011011001110',
            """2
1
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
3
""", main)

    def test_main3(self):
        self.helper(f"200000\n{'10' * 100000}", 'a\n', main)

from problems.aising2020d import main
from tests.si_so_test_case import SISOTestCase


class Test(SISOTestCase):

    def test_main(self):
        self.helper('3\n011', '2\n1\n1\n', main)

    def test_main2(self):
        self.helper('23\n00110111001011011001110',
            """2
1
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
3
""", main)

    def test_main3(self):
        self.helper(f"200000\n{'10' * 100000}", 'a\n', main)

from problems.aising2020d import main
from tests.si_so_test_case import SISOTestCase


class Test(SISOTestCase):
    def test_main(self):
        self.helper("""3
011""", """2
1
1
""", main)

    def test_main2(self):
        self.helper("""23
00110111001011011001110""", """2
1
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
3
""", main)

    def test_main3(self):
        self.helper(f"""200000
{"10" * 100000}""", """a
""", main)
