Fixed booboo

This commit is contained in:
Timo De Waele 2021-12-01 12:58:00 +01:00
parent 504c31eed6
commit 976e095be9
8 changed files with 3384 additions and 11 deletions

2000
2021/Timpy/day_1/input.txt Normal file

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

10
2021/Timpy/day_1/test.txt Normal file
View file

@ -0,0 +1,10 @@
199
200
208
210
200
207
240
269
260
263

View file

View file

@ -0,0 +1,144 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Imports"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"from time import time"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Load input"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"scrolled": true
},
"outputs": [],
"source": [
"#INPUT_FILE = 'test.txt'\n",
"INPUT_FILE = 'input.txt'"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {
"scrolled": true
},
"outputs": [],
"source": [
"input_list = None\n",
"input_list"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"input_list_np = None\n",
"input_list_np"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Part 1"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"SOLUTION: None, TIME: 0.056ms\n"
]
}
],
"source": [
"start_t = time()\n",
"solution = None\n",
"end_t = time()\n",
"print(f'SOLUTION: {solution}, TIME: {round((end_t - start_t) * 1000, 4)}ms')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Part 2"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"SOLUTION: None, TIME: 0.0641ms\n"
]
}
],
"source": [
"start_t = time()\n",
"solution = None\n",
"end_t = time()\n",
"print(f'SOLUTION: {solution}, TIME: {round((end_t - start_t) * 1000, 4)}ms')"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.5"
}
},
"nbformat": 4,
"nbformat_minor": 4
}

View file

View file

@ -1,15 +1,16 @@
# De Zeus Advent of Code
| Wie? | Waar? (Repository) | Taal? |
| :------------- | :-----------------------------------------------: | ---------: |
| chvp | https://github.com/chvp/aoc2021 | forth |
| ninewise | https://git.fuyu.moe/ninewise/adventofcode-2021 | lua |
| robbe | git@github.com:Robbe7730/adventofcode2021.git | ? |
| Flynn | https://gitlab.com/mcbloch/aoc2021 | ? |
| Silvius | https://github.com/ajuvercr/aoc-2021 | C |
| rien | https://github.com/rien/adventofcode2021 | C (no std) |
| iasoon | https://github.com/iasoon/aoc2021 | pony |
| Bond-009 | https://github.com/Bond-009/advent-of-code-2021 | Rust |
| Wie? | Waar? (Repository) | Taal? |
| :------------- | :-----------------------------------------------: | ---------: |
| chvp | https://github.com/chvp/aoc2021 | forth |
| ninewise | https://git.fuyu.moe/ninewise/adventofcode-2021 | lua |
| robbe | git@github.com:Robbe7730/adventofcode2021.git | ? |
| Flynn | https://gitlab.com/mcbloch/aoc2021 | ? |
| Silvius | https://github.com/ajuvercr/aoc-2021 | C |
| rien | https://github.com/rien/adventofcode2021 | C (no std) |
| iasoon | https://github.com/iasoon/aoc2021 | pony |
| Bond-009 | https://github.com/Bond-009/advent-of-code-2021 | Rust |
| Timpy | https://github.com/timodw/aoc_2021 | Python/Numpy|
* repo clonen:

1
Timpy

@ -1 +0,0 @@
Subproject commit d369b74738ac84d6742cd1b49854fd57d1ba01b2