Created
June 8, 2016 03:43
-
-
Save JakenHerman/053ba52b834adf29c7d27bf41a2a3fbd to your computer and use it in GitHub Desktop.
For Brooklyn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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