mirror of
https://github.com/ZeusWPI/Advent-of-Code-Aggregator.git
synced 2024-11-22 06:51:10 +01:00
Fixed booboo
This commit is contained in:
parent
504c31eed6
commit
976e095be9
8 changed files with 3384 additions and 11 deletions
2000
2021/Timpy/day_1/input.txt
Normal file
2000
2021/Timpy/day_1/input.txt
Normal file
File diff suppressed because it is too large
Load diff
1219
2021/Timpy/day_1/solution.ipynb
Normal file
1219
2021/Timpy/day_1/solution.ipynb
Normal file
File diff suppressed because it is too large
Load diff
10
2021/Timpy/day_1/test.txt
Normal file
10
2021/Timpy/day_1/test.txt
Normal file
|
@ -0,0 +1,10 @@
|
|||
199
|
||||
200
|
||||
208
|
||||
210
|
||||
200
|
||||
207
|
||||
240
|
||||
269
|
||||
260
|
||||
263
|
0
2021/Timpy/template/input.txt
Normal file
0
2021/Timpy/template/input.txt
Normal file
144
2021/Timpy/template/solution.ipynb
Normal file
144
2021/Timpy/template/solution.ipynb
Normal 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
|
||||
}
|
0
2021/Timpy/template/test.txt
Normal file
0
2021/Timpy/template/test.txt
Normal file
|
@ -10,6 +10,7 @@
|
|||
| 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
Timpy
|
@ -1 +0,0 @@
|
|||
Subproject commit d369b74738ac84d6742cd1b49854fd57d1ba01b2
|
Loading…
Reference in a new issue