Example #1
0
from test_helper import check_samples

if __name__ == '__main__':
    check_samples(samples=[["1", "This number is not prime"],
                           ["7", "This number is prime"]])
Example #2
0
from test_helper import check_samples

if __name__ == '__main__':
    check_samples(samples=[["8\n","15"]])
Example #3
0
from test_helper import check_samples

if __name__ == '__main__':
    check_samples(samples=[["Ace\n4\n9\nJack\n10\n7", "9.166666666666666"]])
Example #4
0
from test_helper import check_samples

if __name__ == '__main__':
    check_samples(samples=[
        ["1\n", "0\n1 "], ["5\n", "3\n1 2 4 5 "],
        [
            "96234\n",
            "14\n1 3 9 10 11 22 66 198 594 1782 5346 16038 16039 32078 96234 "
        ]
    ])
Example #5
0
from test_helper import check_samples

if __name__ == '__main__':
    check_samples(samples=[["3 2", "9"]])
Example #6
0
from test_helper import check_samples

if __name__ == '__main__':
    check_samples(samples=[[
        "7\n10\n5\n6", "\t5\t6\n7\t35\t42\n8\t40\t48\n9\t45\t54\n10\t50\t60"
    ], ["5\n5\n6\n6", "\t6\n5\t30"
        ], ["1\n3\n2\n4", "\t2\t3\t4\n1\t2\t3\t4\n2\t4\t6\t8\n3\t6\t9\t12"]])
Example #7
0
from test_helper import check_samples

if __name__ == '__main__':
    check_samples(samples=[["18 35", "630"]])
Example #8
0
from test_helper import check_samples

if __name__ == '__main__':
    check_samples(samples=[["10 15 1 6 3", "7.0"]])
Example #9
0
from test_helper import check_samples

if __name__ == '__main__':
    check_samples(samples=[["2 3\n1 -2 3\n4 5 6\n", "17"]])
Example #10
0
from test_helper import check_samples

if __name__ == '__main__':
    check_samples(samples=[["In the town where I was born","7"]])
Example #11
0
from test_helper import check_samples

if __name__ == '__main__':
    check_samples(
        samples=[["4901825", "four\nnine\nzero\none\neight\ntwo\nfive"]])
Example #12
0
from test_helper import check_samples

if __name__ == '__main__':
    check_samples(samples=[["python","p\ny\nt\nh\no\nn"]])
Example #13
0
from test_helper import check_samples

if __name__ == '__main__':
    check_samples(samples=[["12\n179\n0", "200\n48"]])
Example #14
0
from test_helper import check_samples

if __name__ == '__main__':
    check_samples(samples=[["23\n42\n34","23"]])
Example #15
0
from test_helper import check_samples

if __name__ == '__main__':
    check_samples(samples=[["nitwit, blubber, oddment, tweak", "blubber"]])
Example #16
0
from test_helper import check_samples

if __name__ == '__main__':
    check_samples(samples=[["2 3\n0 5\n7 10\n1 6 11", "1 0 0"]])
Example #17
0
from test_helper import check_samples

if __name__ == '__main__':
    check_samples(samples=[["5\n1 44\n3 50\n2 44\n2 50\n2 -1", "YES"]])
Example #18
0
from test_helper import check_samples

if __name__ == '__main__':
    check_samples(samples=[["2.0\n1","2"],["2\n2","4"]])
Example #19
0
from test_helper import check_samples

if __name__ == '__main__':
    check_samples(samples=[["5 8 2 7 8 8 2 4\n8","1 4 5"],["5 8 2 7 8 8 2 4\n10","Missing"]])
Example #20
0
from test_helper import check_samples

if __name__ == '__main__':
    check_samples(samples=[["4\nISSUE 1\nISSUE 2\nSOLVED\nISSUE 3\n", "2\n3"]])
Example #21
0
from test_helper import check_samples

if __name__ == '__main__':
    check_samples(samples=[["12345", "[1.5, 2.5, 3.5, 4.5]"]])
Example #22
0
from test_helper import check_samples

if __name__ == '__main__':
    check_samples(
        samples=[["17", "17 52 26 13 40 20 10 5 16 8 4 2 1"], ["1", "1"]])
Example #23
0
from test_helper import check_samples

if __name__ == '__main__':
    check_samples(
        samples=[["прямоугольник\n4\n10", "40.0"], ["круг\n5", "78.5"],
                 ["треугольник\n3\n4\n5", "6.0"]])
Example #24
0
from test_helper import check_samples

if __name__ == '__main__':
    check_samples(samples=[[
        "0\n10010\n00101\n01001\nNot a number\n1 1\n0 0\n", "0\n10010\n01001"
    ]])
Example #25
0
from test_helper import check_samples

if __name__ == '__main__':
    check_samples(samples=[["Big Brother watches you\nFather", "False"]])
Example #26
0
from test_helper import check_samples

if __name__ == '__main__':
    check_samples(samples=[["60\n2", "11"], ["-1\n1", "108"]])
Example #27
0
from test_helper import check_samples

if __name__ == '__main__':
    check_samples(samples=[["5","5"]])
Example #28
0
from test_helper import check_samples

if __name__ == '__main__':
    check_samples(samples=[["287", "782"]])
Example #29
0
from test_helper import check_samples

if __name__ == '__main__':
    check_samples(
        samples=[["a aa abC aa ac abc bcd a", "ac 1\na 2\nabc 2\nbcd 1\naa 2"],
                 ["a A a", "a 3"]])
Example #30
0
from test_helper import check_samples

if __name__ == '__main__':
    check_samples(samples=[["1\n7\n9\n0", "5.66666666667"]])