{ "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 }