Skip to content

Instantly share code, notes, and snippets.

@raullenchai
Created April 13, 2012 01:36
Show Gist options
  • Save raullenchai/2372715 to your computer and use it in GitHub Desktop.
Save raullenchai/2372715 to your computer and use it in GitHub Desktop.
Qualification Round Africa 2010 (B)
"""
http://code.google.com/codejam/contest/351101/dashboard#s=p1
"""
__author__ = 'Raullen'
f = open('B-large-practice.in','r')
N = int(f.readline())
g = open('res.out','w')
res = list()
for x in range(N):
words = str(f.readline())
a = words.split()
a.reverse()
res.append( 'Case #' + str(x+1) + ': ' + ' '.join(a) + '\n')
g.writelines(res)
g.close()
f.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment