Tweaking
[advent-of-code-17.git] / src / advent20 / advent20.ipynb
index c73e459f21e4eaf1dc98aef0987c0a324abd8367..20f0074cdcebaa8b3cb8a82def40808cb299ef4d 100644 (file)
   },
   {
    "cell_type": "code",
-   "execution_count": 123,
+   "execution_count": 135,
    "metadata": {},
    "outputs": [
     {
      "data": {
       "text/plain": [
-       "448"
+       "570"
       ]
      },
      "metadata": {},
     }
    ],
    "source": [
-    "part2 500 particles"
+    "part2 35 particles"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": 137,
+   "metadata": {},
+   "outputs": [
+    {
+     "data": {
+      "text/plain": [
+       "[(10,1000),(11,979),(12,979),(13,973),(14,955),(15,932),(16,921),(17,906),(18,874),(19,858),(20,831),(21,821),(22,809),(23,795),(24,791),(25,771),(26,752),(27,723),(28,703),(29,669),(30,648),(31,634),(32,622),(33,617),(34,589),(35,570),(36,542),(37,522),(38,494),(39,481),(40,448),(41,448),(42,448),(43,448),(44,448),(45,448)]"
+      ]
+     },
+     "metadata": {},
+     "output_type": "display_data"
+    }
+   ],
+   "source": [
+    "[(n, part2 n particles) | n <- [10..45]]"
    ]
   },
   {