This file contains hidden or 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
| 0 False | |
| 1 False | |
| 2 False | |
| 3 False | |
| 4 False | |
| 5 False | |
| 6 True | |
| 7 False | |
| 8 True | |
| 9 False |
This file contains hidden or 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
| # Musab K. | |
| from string import ascii_letters | |
| from itertools import combinations | |
| nums = [list(sorted([int(y) for y in x.split(" ")])) for x in open("numlist.txt", "r").read().replace("\n\n", "\n").split("\n")[:-1]] | |
| all_nums = [] | |
| for l in nums: | |
| for n in l: | |
| if not n in all_nums: | |
| all_nums.append(n) |
This file contains hidden or 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
| import os | |
| import sys | |
| import shutil | |
| import time | |
| class InputNeeded(Exception): | |
| pass | |
| class Memory: | |
| def __init__(self, codes): |
This file contains hidden or 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
| # Copyright Musab Kilic 2018 | |
| # Special thanks to Noam Nisan and Shimon Schocken | |
| # Course page: https://www.coursera.org/learn/build-a-computer/ | |
| # | |
| # Usage: python submit.py [folder(0-6)/full] | |
| # Example: python submit.py 0 | |
| # python submit.py full | |
| from __future__ import division | |
| import os |