Skip to content

Instantly share code, notes, and snippets.

@boxysean
Created December 22, 2016 15:43
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/77263ca0f7b38707bee6dc3151335f13 to your computer and use it in GitHub Desktop.
Save boxysean/77263ca0f7b38707bee6dc3151335f13 to your computer and use it in GitHub Desktop.
To get you started with B...
import fileinput
def solve(sequence):
pass
def main():
sequence = []
for line in fileinput.input():
for word in line.split():
x = int(word)
if x == -999999:
res = solve(sequence)
print(res)
sequence = []
else:
sequence.append(x)
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment