{"id":17422080,"url":"https://github.com/tranzystorekk/aoc2019-python","last_synced_at":"2025-08-24T11:40:28.029Z","repository":{"id":75149368,"uuid":"222295935","full_name":"tranzystorekk/aoc2019-python","owner":"tranzystorekk","description":"Advent of Code 2019 solutions in Python","archived":false,"fork":false,"pushed_at":"2021-05-15T11:49:56.000Z","size":80,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T00:06:29.667Z","etag":null,"topics":["advent-of-code-2019","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tranzystorekk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-11-17T18:51:10.000Z","updated_at":"2021-11-30T19:31:03.000Z","dependencies_parsed_at":"2023-06-05T14:00:23.916Z","dependency_job_id":null,"html_url":"https://github.com/tranzystorekk/aoc2019-python","commit_stats":null,"previous_names":["tranzystorekk/aoc2019-python"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tranzystorekk%2Faoc2019-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tranzystorekk%2Faoc2019-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tranzystorekk%2Faoc2019-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tranzystorekk%2Faoc2019-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tranzystorekk","download_url":"https://codeload.github.com/tranzystorekk/aoc2019-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245944063,"owners_count":20697948,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["advent-of-code-2019","python"],"created_at":"2024-10-17T03:05:34.480Z","updated_at":"2025-03-27T23:43:49.804Z","avatar_url":"https://github.com/tranzystorekk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AOC 2019 solutions\n\n## About\n\nThis repo contains solutions to the [advent of code](https://adventofcode.com/) 2019 edition.\n\nNow requires Python \u003e= 3.8!\n\n## How to use\n\nThe files under the [days](days) directory are most conveniently run as python modules:\n\n```shell\npython3 -m days.d01p1 \u003cinput file\u003e\n```\n\nThe `input` directory is conveniently included to store your personal input and test files.\n\n## [utils.parse](utils/parse.py)\n\nThis utility module provides code with a uniform way to get input,\nincluding argument parsing.\n\nThat is, it provides an optional argument for specifying an input file.\nIf this argument is not specified, input is read from stdin.\n\n```python\nfrom utils.parse import Parser\n\n# mimics the cat utility\nparser = Parser(desc=\"Optional assignment description\")\nwith parser.input as input:\n    stripped = (l.strip() for l in input)\n    print(*stripped, sep='\\n')\n```\n\n## [misc.disic](misc/disic.py)\n\n### Intcode\n\nIn this edition some tasks operate on a special Intcode language.\n\nThis module prettifies an Intcode program\nby adding named operations, visual address modes and opcode positions.\n\n### Example\n\nFor a comma-separated Intcode (wrapping added for readability):\n\n```txt\n3,52,\n1001,52,-5,52,\n3,53,\n1,52,56,54,\n1007,54,5,55,\n1005,55,26,\n1001,54,-5,54,\n1105,1,12,\n1,53,54,53,\n1008,54,0,55,\n1001,55,1,55,\n2,53,55,53,\n4,53,\n1001,56,-1,56,\n1005,56,6,\n99,\n0,\n0,\n0,\n0,\n10\n```\n\n`python3 -m misc.disic \u003cinput file\u003e` outputs:\n\n```txt\n00000000: INP 52\n00000002: ADD 52 #-5 52\n00000006: INP 53\n00000008: ADD 52 56 54\n00000012: TLT 54 #5 55\n00000016: JNZ 55 #26\n00000019: ADD 54 #-5 54\n00000023: JNZ #1 #12\n00000026: ADD 53 54 53\n00000030: TEQ 54 #0 55\n00000034: ADD 55 #1 55\n00000038: MUL 53 55 53\n00000042: OUT 53\n00000044: ADD 56 #-1 56\n00000048: JNZ 56 #6\n00000051: HLT\n00000052: ??? (0)\n00000053: ??? (0)\n00000054: ??? (0)\n00000055: ??? (0)\n00000056: ??? (10)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftranzystorekk%2Faoc2019-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftranzystorekk%2Faoc2019-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftranzystorekk%2Faoc2019-python/lists"}