def main():
    # Set level from DEBUG, INFO, WARNING. ERROR, CRITICAL
    logging.basicConfig(level=logging.INFO)

    vertices = [[-1, -1], [1, 0], [0, 1]]
    expected = 1
    print answer(vertices)

    vertices = [[2, 3], [6, 9], [10, 160]]
    expected = 289
    print answer(vertices)

    vertices = [[91207, 89566], [-88690, -83026], [67100, 47194]]
    expected = 1730960165
    print answer(vertices)

    vertices = [[0, 0], [0, 1], [1, 0]]
    expected = 0
    print answer(vertices)
示例#2
0
def main():
    # Set level from DEBUG, INFO, WARNING. ERROR, CRITICAL
    logging.basicConfig(level=logging.INFO)

    vertices = [[-1, -1], [1, 0], [0, 1]]
    expected = 1
    print answer(vertices)

    vertices = [[2, 3], [6, 9], [10, 160]]
    expected = 289
    print answer(vertices)

    vertices = [[91207, 89566], [-88690, -83026], [67100, 47194]]
    expected = 1730960165
    print answer(vertices)

    vertices = [[0, 0], [0, 1], [1, 0]]
    expected = 0
    print answer(vertices)
 def testcase_001(self):
     vertices = [[2, 3], [6, 9], [10, 160]]
     expected = 289
     self.assertEqual(answer(vertices), expected)
 def testcase_008(self):
     vertices = [[-5, -3], [5, -3], [0, 6]]
     expected = 40
     self.assertEqual(answer(vertices), expected)
 def testcase_007(self):
     vertices = [[-5, 4], [4, 6], [3, -3]]
     expected = 39
     self.assertEqual(answer(vertices), expected)
 def testcase_006(self):
     vertices = [[1, 1], [4, 10], [10, 6]]
     expected = 31
     self.assertEqual(answer(vertices), expected)
 def testcase_005(self):
     vertices = [[0, 0], [0, 10], [10, 0]]
     expected = 36
     self.assertEqual(answer(vertices), expected)
 def testcase_004(self):
     vertices = [[-1, -1], [1, 0], [0, 1]]
     expected = 1
     self.assertEqual(answer(vertices), expected)
 def testcase_003(self):
     vertices = [[0, 0], [0, 1], [1, 0]]
     expected = 0
     self.assertEqual(answer(vertices), expected)
 def testcase_002(self):
     vertices = [[91207, 89566], [-88690, -83026], [67100, 47194]]
     expected = 1730960165
     self.assertEqual(answer(vertices), expected)