import sys sys.setrecursionlimit(1000000000) # # Solution Template for Sitting or Standing? # # 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("sitin.txt", "r") output_file = open("sitout.txt", "w") r = None s = None num_tickets = None # Read the values from the input file. input_line = input_file.readline().strip() r, s = map(int, input_line.split()) num_tickets = int(input_file.readline().strip()) # TODO: This is where you should compute the answers and store them into the # variables num_sitting and num_standing. num_sitting = None num_standing = None # Write the answer to the output file. output_file.write("%d %d\n" % (num_sitting, num_standing)) # Finally, close the input/output files. input_file.close() output_file.close()