Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.47 KB | None | 0 0
  1. # Google Code Jam practice problems
  2.  
  3. file_in = "test.txt"
  4. #file_in = "A-small-practice.in"
  5. #file_in = "A-large-practice.in"
  6.  
  7. file_out = "output.txt"
  8.  
  9. def answer():
  10.     #code here
  11.  
  12.    
  13.    
  14. def write_file():
  15.     f = open(file_in)
  16.     out = open(file_out, "w")
  17.     num_cases = int(f.readline())
  18.     for i in range(1, num_cases + 1):
  19.         test_case = int(f.readline().strip())
  20.         output = answer(test_case)
  21.         out.write("Case #" + str(i+1) + ": " + str(output) + "\n")
  22.    
  23. write_file()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement