Skip to content

Instantly share code, notes, and snippets.

@boxysean
Created December 22, 2016 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boxysean/cfd2e301e94c1b568b3d1f4b0fd5db47 to your computer and use it in GitHub Desktop.
Save boxysean/cfd2e301e94c1b568b3d1f4b0fd5db47 to your computer and use it in GitHub Desktop.
To get you started with problem A...
import fileinput
def main():
for line in fileinput.input():
i, j = [int(x) for x in line.split()]
# beware the min and max!
low = min(i, j)
high = max(i, j)
print('%d %d %d' % (i, j, solve(low, high)))
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment