Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Google Codejam: IPython notebook template
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# -*- coding: utf-8 -*-
# <nbformat>3</nbformat>
# <codecell>
def readline_ints():
return [int(num) for num in fin.readline().strip().split()]
# <codecell>
# Update this with the filename
fname = "A-sample"
with open(fname+".in","r") as fin, open(fname+".out","w") as fout:
numcases = readline_ints()[0]
print(numcases, "cases")
for caseno in range(1, numcases+1):
# Code goes here
outstr = "Case #%d: %s" % (caseno, result)
fout.write(outstr + "\n")
print(outstr)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.