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
Homebrew build logs for perl on "CentOS Linux release 7.9.2009 (Core)" | |
Build date: 2023-06-08 11:44:22 |
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
# https://www.reddit.com/r/adventofcode/comments/zdw0u6/2022_day_6_solutions/iz3mu21/ | |
# https://topaz.github.io/paste/#XQAAAQBAAwAAAAAAAAA7mkrvHeIvDZUizuO2LI0KXEPUFLLgeIPRqbv/z+nmNU7MYNHuAOqKaD9UwePzSwp6PCMKtAsVAgxfdclBU/ECGwhPZKq9BUR7o/Zmu+RIMPXoNzknSVbDlqPcEWb4XUG+o730qLQo1wzmnszMJK+r6NrEozSGFECms/XleM5xyuUD53rlAg75i0dcTOehtb1WruFsmuFwg2mVsqUGkAarZ91Z0S5nIRNpNzt4nm4Sd+ZspUOwMi1Jy+UlCSFTPNIQLfYwl6ASa24CiiwiY4ATuPdNdXtyCjLqxfqKFgfPqJLyeVkuHoC+PaTNlr2uRgIvqUXu69Xj3qp4HrDsdRhdSc5p9uEWfh3h9Ho1p/Jm/CQ5JN04MvoCgTXNe5MLr1WkhxA7Ms/bLsFdK6YyolhP9yXU8Y3WEWxhYavVBje+Lxs5P0MPZgRCwB/cUu3+cy7u4exW0KcagX5ibrMPumzB8hv+pNC2yo+b3ZXKxqXd7jKBvFQnlwRzusStU+uP/wTSg/TeaOv/8fwG+A== | |
with open("input.txt") as f: | |
s = f.read().strip() | |
# alternate approach for part 2 | |
cur_window = {} |