Skip to content

Instantly share code, notes, and snippets.

Fredrik Paues fredrikpaues

  • Stockholm, Sweden
View GitHub Profile
View BreakingEggs.py
import math,sys
def main():
if type(sys.stdin).__name__!='file':
sys.exit()
else:
data=[]
for line in sys.stdin:
data.append(line.strip())
T=int(data[0])
@fredrikpaues
fredrikpaues / input01.txt
Created Mar 30, 2012 — forked from alum/gist:1916680
Stock trading
View input01.txt
10
9
94 66 53 82 87 89 69 24 56
6
65 80 74 98 1 15
5
3 72 72 95 63
6
7 74 34 81 100 5
7
You can’t perform that action at this time.