Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Google Code Jam practice problems
- file_in = "test.txt"
- #file_in = "A-small-practice.in"
- #file_in = "A-large-practice.in"
- file_out = "output.txt"
- def answer():
- #code here
- def write_file():
- f = open(file_in)
- out = open(file_out, "w")
- num_cases = int(f.readline())
- for i in range(1, num_cases + 1):
- test_case = int(f.readline().strip())
- output = answer(test_case)
- out.write("Case #" + str(i+1) + ": " + str(output) + "\n")
- write_file()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement