Skip to content

Instantly share code, notes, and snippets.

@gnarula
Created January 13, 2016 10:18
Show Gist options
  • Save gnarula/ed5030cdd9f806a28097 to your computer and use it in GitHub Desktop.
Save gnarula/ed5030cdd9f806a28097 to your computer and use it in GitHub Desktop.
from subprocess import check_output
for i in range(1,1000):
print(check_output(["java", "Sort"], universal_newlines=True, input="{0}\n".format(i)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment