diff --git a/.gitignore b/.gitignore index 00c1844..8315cca 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -.direnv/ \ No newline at end of file +.direnv/ +/result \ No newline at end of file diff --git a/000-999/144/main.py b/000-999/144/main.py deleted file mode 100644 index 55189e2..0000000 --- a/000-999/144/main.py +++ /dev/null @@ -1,15 +0,0 @@ -def rot13(message): - subs = {'A': 'N', 'B': 'O', 'C': 'P', 'D': 'Q', 'E': 'R', 'F': 'S', 'G': 'T', 'H': 'U', 'I': 'V', 'J': 'W', 'K': 'X', 'L': 'Y', 'M': 'Z', 'N': 'A', 'O': 'B', 'P': 'C', 'Q': 'D', 'R': 'E', 'S': 'F', 'T': 'G', 'U': 'H', 'V': 'I', 'W': 'J', 'X': 'K', 'Y': 'L', 'Z': 'M', - 'a': 'N', 'b': 'O', 'c': 'P', 'd': 'Q', 'e': 'R', 'f': 'S', 'g': 'T', 'h': 'U', 'i': 'V', 'j': 'W', 'k': 'X', 'l': 'Y', 'm': 'Z', 'n': 'A', 'o': 'B', 'p': 'C', 'q': 'D', 'r': 'E', 's': 'F', 't': 'G', 'u': 'H', 'v': 'I', 'w': 'J', 'x': 'K', 'y': 'L', 'z': 'M'} - - return ''.join(list(map( - lambda x: subs[x] if x in subs else x, - message - ))) - - -if __name__ == '__main__': - with open('./000-999/144/inputs/input') as file: - input = file.read() - - print(rot13(input)) diff --git a/README.md b/README.md index 17a5d43..f20b1ac 100644 --- a/README.md +++ b/README.md @@ -7,4 +7,4 @@ The folder name is the challenge id, as found in the URL (