Skip to content

Instantly share code, notes, and snippets.

@JakenHerman
Created June 8, 2016 03: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 JakenHerman/053ba52b834adf29c7d27bf41a2a3fbd to your computer and use it in GitHub Desktop.
Save JakenHerman/053ba52b834adf29c7d27bf41a2a3fbd to your computer and use it in GitHub Desktop.
For Brooklyn
f = open('sh3.out', 'r')
lines = f.readlines()
result = []
for x in lines:
result.append(x.split(' ')[1])
bin = [0 for k in range(33)]
def bin_sort(q, bin_size):
sorted = int(q)/int(bin_size)
bin[sorted] += 1
index_res = 0
for j in result:
bin_sort(result[index_res], 5)
index_res += 1
index_bin = 0
for l in bin:
print bin[index_bin]
index_bin += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment