Skip to content

Instantly share code, notes, and snippets.

View johnkariuki's full-sized avatar
🍣
Sushi

Kariuki johnkariuki

🍣
Sushi
View GitHub Profile
@johnkariuki
johnkariuki / store_credit.py
Created April 8, 2016 12:52
Google code jam - Africa 2010, Qualification Round
with open('A-large-practice.in') as f:
lines = f.readlines()
testcases = int(lines[0])
data = [testcases]
last_pos = 1
with open('output.txt', 'wt') as output:
for i in range(1, testcases + 1):
C = int(lines[last_pos])