Beispiel #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"]])
Beispiel #2
0
from test_helper import check_samples

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

if __name__ == '__main__':
    check_samples(samples=[["Ace\n4\n9\nJack\n10\n7", "9.166666666666666"]])
Beispiel #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 "
        ]
    ])
Beispiel #5
0
from test_helper import check_samples

if __name__ == '__main__':
    check_samples(samples=[["3 2", "9"]])
Beispiel #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"]])
Beispiel #7
0
from test_helper import check_samples

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

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

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

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

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

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

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

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

if __name__ == '__main__':
    check_samples(samples=[["nitwit, blubber, oddment, tweak", "blubber"]])
Beispiel #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"]])
Beispiel #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"]])
Beispiel #18
0
from test_helper import check_samples

if __name__ == '__main__':
    check_samples(samples=[["2.0\n1","2"],["2\n2","4"]])
Beispiel #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"]])
Beispiel #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"]])
Beispiel #21
0
from test_helper import check_samples

if __name__ == '__main__':
    check_samples(samples=[["12345", "[1.5, 2.5, 3.5, 4.5]"]])
Beispiel #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"]])
Beispiel #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"]])
Beispiel #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"
    ]])
Beispiel #25
0
from test_helper import check_samples

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

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

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

if __name__ == '__main__':
    check_samples(samples=[["287", "782"]])
Beispiel #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"]])
Beispiel #30
0
from test_helper import check_samples

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