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nUkxKR+AMd9WLnXz/RHf62pfzUYD53Wlm732qErISJK9N
+H1xYYVXMkwLcIW1Owus4zyXgBiB3ltSoxtA/If30e6L8R3Uq59eaPtoyMk/5zIdI
+1Lv/+zYEJ3SobXEAeADbCTOXQGy0qy7byRaLQdgcvcFo+24kJJF4UCMOjlBhjEO+
+7zhLnRQgjWOcQDWLm6YdaSZDP3hn1JVDN3mY76gMVBE2WXnIQ/J0Qipq8DRrb18y
+ZCnodUfeQbEylP1mLrulGOLu2hDn2d1FcaHMHF1CfJVQILmkLmLx2q+ZauiQePp3
+ELF0QCwqsbCLgk7BTpwgnOgz0wUVQ/Yz3GXrmnLBAruXCOJmEgqg8UOoBherBhVW
+e+tvN53HHuefmqofOsTpWJOFxl3MKaUO0dcLtKypcYuiGQL4qY7VUsKTrTxpe45u
+YABZaJJLrdbsk6tVZF6p
+=owuV
-----END PGP SIGNATURE-----
```
656 advent14.txt 686da937ed08c3039b8782c7fd3e4b2cf45fcf1cfeada8bca4007e5020d3bd55
10488 advent15.ipynb a5f0886978fe096f62715ee54ebdcd20fa82b4a34afc4edacaac48a2006da765
274 advent15.txt 7a8a96fd6321651f56df6018bf9c9ba3670af027504e294906d68b34ccff3910
-4269 advent16.ipynb be305b2de5f560fb4f99686e8739e1f3eb92f76a02bcb73cf7938295430b9c8e
+4262 advent16.ipynb d3cd7fd1f418a757a278ad0702d95af8e61a1cb3778b865c8e4cd98ab834097b
21628 advent16.txt 90d5da4140bf7c7e98c16d78b3249b0e69da7efe9fb5c69a4a0757f1e3552f94
```
},
{
"cell_type": "code",
- "execution_count": 13,
+ "execution_count": 3,
"metadata": {
"collapsed": false
},
"{'cats': 3, 'goldfish': 6, 'pomeranians': 8}"
]
},
- "execution_count": 13,
+ "execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
"source": [
"aunts = {}\n",
"for l in pi16:\n",
- " s = l.find(':')\n",
- " n = int(l[:s].split(' ')[1])\n",
- " items = l[s+1:].split(', ')\n",
+ " ll = l.split(': ', 1)\n",
+ " n = int(ll[0].split(' ')[1])\n",
+ " items = ll[1].split(', ')\n",
" aunts[n] = {i.split(': ')[0].strip(): int(i.split(': ')[1]) for i in items}\n",
"aunts[406]"
]
},
{
"cell_type": "code",
- "execution_count": 14,
+ "execution_count": 4,
"metadata": {
"collapsed": true
},
},
{
"cell_type": "code",
- "execution_count": 22,
+ "execution_count": 5,
"metadata": {
"collapsed": true
},
},
{
"cell_type": "code",
- "execution_count": 23,
+ "execution_count": 6,
"metadata": {
"collapsed": false
},
"[40]"
]
},
- "execution_count": 23,
+ "execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
},
{
"cell_type": "code",
- "execution_count": 28,
+ "execution_count": 7,
"metadata": {
"collapsed": true
},
},
{
"cell_type": "code",
- "execution_count": 26,
+ "execution_count": 8,
"metadata": {
"collapsed": false
},
"False"
]
},
- "execution_count": 26,
+ "execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
},
{
"cell_type": "code",
- "execution_count": 29,
+ "execution_count": 9,
"metadata": {
"collapsed": false
},
"[241]"
]
},
- "execution_count": 29,
+ "execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}