Add 2021, 2023

This commit is contained in:
2024-12-01 11:34:22 -05:00
parent bd9480c6a7
commit 52771588ee
13 changed files with 2531 additions and 0 deletions

1000
2021/day3 Normal file

File diff suppressed because it is too large Load Diff

12
2021/day3.py Executable file
View File

@ -0,0 +1,12 @@
#!/usr/bin/env python3
def main():
with open("day3.sample", "r") as file:
lines = file.readlines()
for line in lines:
print(int(line.strip(), 2))
if __name__ == "__main__":
main()

12
2021/day3.sample Normal file
View File

@ -0,0 +1,12 @@
00100
11110
10110
10111
10101
01111
00111
11100
10000
11001
00010
01010