import sys sys.setrecursionlimit(1000000000) # # Solution Template for A Mindbending Scenario # # This file is provided to assist with reading and writing of the input # files for the problem. You may modify this file however you wish, or # you may choose not to use this file at all. # # Open the input and output files. input_file = open("bendin.txt", "r") output_file = open("bendout.txt", "w") r1_x1 = None r1_y1 = None r1_x2 = None r1_y2 = None r2_x1 = None r2_y1 = None r2_x2 = None r2_y2 = None # Read the values from the input file. input_line = input_file.readline().strip() r1_x1, r1_y1, r1_x2, r1_y2 = map(int, input_line.split()) input_line = input_file.readline().strip() r2_x1, r2_y1, r2_x2, r2_y2 = map(int, input_line.split()) # TODO: This is where you should compute the answer and store it into the # variable answer. answer = None # Write the answer to the output file. output_file.write("%d\n" % (answer)) # Finally, close the input/output files. input_file.close() output_file.close()