import sys sys.setrecursionlimit(1000000000) # # Solution Template for Subbookkeeper # # Australian Informatics Olympiad 2024 # # 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. # # N is the number of letters in the word. N = 0 # word is the word with one missing letter word = "" # Open the input and output files. input_file = open("bookin.txt", "r") output_file = open("bookout.txt", "w") # Read the value of N and the word from the input file. N = int(input_file.readline().strip()) word = input_file.readline().strip() # TODO: This is where you should compute your solution. Store the largest score # that Rebecca can achieve into the variable answer. answer = 0 # 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()