Created
December 11, 2022 06:44
-
-
Save undergroundmonorail/897cc5682538c7e9523d347cb6c40dae to your computer and use it in GitHub Desktop.
POC for better example data heuristic for aocd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 88, | |
"id": "f5338ee7-d5fc-45d4-9029-8794d4a14a05", | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/html": [ | |
"<style type=\"text/css\">\n", | |
"#T_155a8_row0_col0, #T_155a8_row0_col1, #T_155a8_row1_col0, #T_155a8_row1_col1, #T_155a8_row2_col0, #T_155a8_row2_col1, #T_155a8_row3_col0, #T_155a8_row3_col1, #T_155a8_row4_col0, #T_155a8_row4_col1, #T_155a8_row5_col0, #T_155a8_row5_col1, #T_155a8_row6_col0, #T_155a8_row6_col1, #T_155a8_row7_col0, #T_155a8_row7_col1, #T_155a8_row8_col0, #T_155a8_row8_col1, #T_155a8_row9_col0, #T_155a8_row9_col1, #T_155a8_row10_col0, #T_155a8_row10_col1, #T_155a8_row11_col0, #T_155a8_row11_col1, #T_155a8_row12_col0, #T_155a8_row12_col1, #T_155a8_row13_col0, #T_155a8_row13_col1, #T_155a8_row14_col0, #T_155a8_row14_col1, #T_155a8_row15_col0, #T_155a8_row15_col1, #T_155a8_row16_col0, #T_155a8_row16_col1, #T_155a8_row17_col0, #T_155a8_row17_col1, #T_155a8_row18_col0, #T_155a8_row18_col1, #T_155a8_row19_col0, #T_155a8_row19_col1, #T_155a8_row20_col0, #T_155a8_row20_col1, #T_155a8_row21_col0, #T_155a8_row21_col1, #T_155a8_row22_col0, #T_155a8_row22_col1, #T_155a8_row23_col0, #T_155a8_row23_col1, #T_155a8_row24_col0, #T_155a8_row24_col1, #T_155a8_row25_col0, #T_155a8_row25_col1, #T_155a8_row26_col0, #T_155a8_row26_col1, #T_155a8_row27_col0, #T_155a8_row27_col1, #T_155a8_row28_col0, #T_155a8_row28_col1, #T_155a8_row29_col0, #T_155a8_row29_col1, #T_155a8_row30_col0, #T_155a8_row30_col1, #T_155a8_row31_col0, #T_155a8_row31_col1, #T_155a8_row32_col0, #T_155a8_row32_col1, #T_155a8_row33_col0, #T_155a8_row33_col1, #T_155a8_row34_col0, #T_155a8_row34_col1, #T_155a8_row35_col0, #T_155a8_row35_col1, #T_155a8_row36_col0, #T_155a8_row36_col1, #T_155a8_row37_col0, #T_155a8_row37_col1, #T_155a8_row38_col0, #T_155a8_row38_col1, #T_155a8_row39_col0, #T_155a8_row39_col1, #T_155a8_row40_col0, #T_155a8_row40_col1, #T_155a8_row41_col0, #T_155a8_row41_col1, #T_155a8_row42_col0, #T_155a8_row42_col1, #T_155a8_row43_col0, #T_155a8_row43_col1, #T_155a8_row44_col0, #T_155a8_row44_col1, #T_155a8_row45_col0, #T_155a8_row45_col1, #T_155a8_row46_col0, #T_155a8_row46_col1, #T_155a8_row47_col0, #T_155a8_row47_col1, #T_155a8_row48_col0, #T_155a8_row48_col1, #T_155a8_row49_col0, #T_155a8_row49_col1, #T_155a8_row50_col0, #T_155a8_row50_col1, #T_155a8_row51_col0, #T_155a8_row51_col1, #T_155a8_row52_col0, #T_155a8_row52_col1, #T_155a8_row53_col0, #T_155a8_row53_col1, #T_155a8_row54_col0, #T_155a8_row54_col1, #T_155a8_row55_col0, #T_155a8_row55_col1, #T_155a8_row56_col0, #T_155a8_row56_col1, #T_155a8_row57_col0, #T_155a8_row57_col1, #T_155a8_row58_col0, #T_155a8_row58_col1, #T_155a8_row59_col0, #T_155a8_row59_col1, #T_155a8_row60_col0, #T_155a8_row60_col1, #T_155a8_row61_col0, #T_155a8_row61_col1, #T_155a8_row62_col0, #T_155a8_row62_col1, #T_155a8_row63_col0, #T_155a8_row63_col1, #T_155a8_row64_col0, #T_155a8_row64_col1, #T_155a8_row65_col0, #T_155a8_row65_col1, #T_155a8_row66_col0, #T_155a8_row66_col1, #T_155a8_row67_col0, #T_155a8_row67_col1, #T_155a8_row68_col0, #T_155a8_row68_col1, #T_155a8_row69_col0, #T_155a8_row69_col1, #T_155a8_row70_col0, #T_155a8_row70_col1, #T_155a8_row71_col0, #T_155a8_row71_col1, #T_155a8_row72_col0, #T_155a8_row72_col1, #T_155a8_row73_col0, #T_155a8_row73_col1, #T_155a8_row74_col0, #T_155a8_row74_col1, #T_155a8_row75_col0, #T_155a8_row75_col1, #T_155a8_row76_col0, #T_155a8_row76_col1, #T_155a8_row77_col0, #T_155a8_row77_col1, #T_155a8_row78_col0, #T_155a8_row78_col1, #T_155a8_row79_col0, #T_155a8_row79_col1, #T_155a8_row80_col0, #T_155a8_row80_col1, #T_155a8_row81_col0, #T_155a8_row81_col1, #T_155a8_row82_col0, #T_155a8_row82_col1, #T_155a8_row83_col0, #T_155a8_row83_col1, #T_155a8_row84_col0, #T_155a8_row84_col1, #T_155a8_row85_col0, #T_155a8_row85_col1 {\n", | |
" white-space: pre-wrap;\n", | |
"}\n", | |
"</style>\n", | |
"<table id=\"T_155a8\">\n", | |
" <thead>\n", | |
" <tr>\n", | |
" <th class=\"blank\" > </th>\n", | |
" <th class=\"blank level0\" > </th>\n", | |
" <th id=\"T_155a8_level0_col0\" class=\"col_heading level0 col0\" >before</th>\n", | |
" <th id=\"T_155a8_level0_col1\" class=\"col_heading level0 col1\" >after</th>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th class=\"index_name level0\" >year</th>\n", | |
" <th class=\"index_name level1\" >day</th>\n", | |
" <th class=\"blank col0\" > </th>\n", | |
" <th class=\"blank col1\" > </th>\n", | |
" </tr>\n", | |
" </thead>\n", | |
" <tbody>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level0_row0\" class=\"row_heading level0 row0\" rowspan=\"14\">2015</th>\n", | |
" <th id=\"T_155a8_level1_row0\" class=\"row_heading level1 row0\" >1</th>\n", | |
" <td id=\"T_155a8_row0_col0\" class=\"data row0 col0\" ></td>\n", | |
" <td id=\"T_155a8_row0_col1\" class=\"data row0 col1\" >(())</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row1\" class=\"row_heading level1 row1\" >2</th>\n", | |
" <td id=\"T_155a8_row1_col0\" class=\"data row1 col0\" ></td>\n", | |
" <td id=\"T_155a8_row1_col1\" class=\"data row1 col1\" >2x3x4</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row2\" class=\"row_heading level1 row2\" >3</th>\n", | |
" <td id=\"T_155a8_row2_col0\" class=\"data row2 col0\" ></td>\n", | |
" <td id=\"T_155a8_row2_col1\" class=\"data row2 col1\" >^>v<</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row3\" class=\"row_heading level1 row3\" >4</th>\n", | |
" <td id=\"T_155a8_row3_col0\" class=\"data row3 col0\" ></td>\n", | |
" <td id=\"T_155a8_row3_col1\" class=\"data row3 col1\" >abcdef</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row4\" class=\"row_heading level1 row4\" >5</th>\n", | |
" <td id=\"T_155a8_row4_col0\" class=\"data row4 col0\" ></td>\n", | |
" <td id=\"T_155a8_row4_col1\" class=\"data row4 col1\" >aeiou</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row5\" class=\"row_heading level1 row5\" >6</th>\n", | |
" <td id=\"T_155a8_row5_col0\" class=\"data row5 col0\" ></td>\n", | |
" <td id=\"T_155a8_row5_col1\" class=\"data row5 col1\" >0,0 through 2,2</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row6\" class=\"row_heading level1 row6\" >8</th>\n", | |
" <td id=\"T_155a8_row6_col0\" class=\"data row6 col0\" ></td>\n", | |
" <td id=\"T_155a8_row6_col1\" class=\"data row6 col1\" >\"\\x27\"</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row7\" class=\"row_heading level1 row7\" >10</th>\n", | |
" <td id=\"T_155a8_row7_col0\" class=\"data row7 col0\" ></td>\n", | |
" <td id=\"T_155a8_row7_col1\" class=\"data row7 col1\" >211</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row8\" class=\"row_heading level1 row8\" >11</th>\n", | |
" <td id=\"T_155a8_row8_col0\" class=\"data row8 col0\" ></td>\n", | |
" <td id=\"T_155a8_row8_col1\" class=\"data row8 col1\" >xx</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row9\" class=\"row_heading level1 row9\" >12</th>\n", | |
" <td id=\"T_155a8_row9_col0\" class=\"data row9 col0\" ></td>\n", | |
" <td id=\"T_155a8_row9_col1\" class=\"data row9 col1\" >{\"a\":[-1,1]}</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row10\" class=\"row_heading level1 row10\" >14</th>\n", | |
" <td id=\"T_155a8_row10_col0\" class=\"data row10 col0\" ></td>\n", | |
" <td id=\"T_155a8_row10_col1\" class=\"data row10 col1\" >1120</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row11\" class=\"row_heading level1 row11\" >17</th>\n", | |
" <td id=\"T_155a8_row11_col0\" class=\"data row11 col0\" ></td>\n", | |
" <td id=\"T_155a8_row11_col1\" class=\"data row11 col1\" >150</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row12\" class=\"row_heading level1 row12\" >20</th>\n", | |
" <td id=\"T_155a8_row12_col0\" class=\"data row12 col0\" >House 1 got 10 presents.\n", | |
"House 2 got 30 presents.\n", | |
"House 3 got 40 presents.\n", | |
"House 4 got 70 presents.\n", | |
"House 5 got 60 presents.\n", | |
"House 6 got 120 presents.\n", | |
"House 7 got 80 presents.\n", | |
"House 8 got 150 presents.\n", | |
"House 9 got 130 presents.</td>\n", | |
" <td id=\"T_155a8_row12_col1\" class=\"data row12 col1\" ></td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row13\" class=\"row_heading level1 row13\" >24</th>\n", | |
" <td id=\"T_155a8_row13_col0\" class=\"data row13 col0\" >Group 1; Group 2; Group 3\n", | |
"11 9 (QE= 99); 10 8 2; 7 5 4 3 1\n", | |
"10 9 1 (QE= 90); 11 7 2; 8 5 4 3\n", | |
"10 8 2 (QE=160); 11 9; 7 5 4 3 1\n", | |
"10 7 3 (QE=210); 11 9; 8 5 4 2 1\n", | |
"10 5 4 1 (QE=200); 11 9; 8 7 3 2\n", | |
"10 5 3 2 (QE=300); 11 9; 8 7 4 1\n", | |
"10 4 3 2 1 (QE=240); 11 9; 8 7 5\n", | |
"9 8 3 (QE=216); 11 7 2; 10 5 4 1\n", | |
"9 7 4 (QE=252); 11 8 1; 10 5 3 2\n", | |
"9 5 4 2 (QE=360); 11 8 1; 10 7 3\n", | |
"8 7 5 (QE=280); 11 9; 10 4 3 2 1\n", | |
"8 5 4 3 (QE=480); 11 9; 10 7 2 1\n", | |
"7 5 4 3 1 (QE=420); 11 9; 10 8 2</td>\n", | |
" <td id=\"T_155a8_row13_col1\" class=\"data row13 col1\" ></td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level0_row14\" class=\"row_heading level0 row14\" rowspan=\"16\">2016</th>\n", | |
" <th id=\"T_155a8_level1_row14\" class=\"row_heading level1 row14\" >1</th>\n", | |
" <td id=\"T_155a8_row14_col0\" class=\"data row14 col0\" ></td>\n", | |
" <td id=\"T_155a8_row14_col1\" class=\"data row14 col1\" >R2, L3</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row15\" class=\"row_heading level1 row15\" >2</th>\n", | |
" <td id=\"T_155a8_row15_col0\" class=\"data row15 col0\" >1 2 3\n", | |
"4 5 6\n", | |
"7 8 9</td>\n", | |
" <td id=\"T_155a8_row15_col1\" class=\"data row15 col1\" >ULL\n", | |
"RRDDD\n", | |
"LURDL\n", | |
"UUUUD</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row16\" class=\"row_heading level1 row16\" >3</th>\n", | |
" <td id=\"T_155a8_row16_col0\" class=\"data row16 col0\" ></td>\n", | |
" <td id=\"T_155a8_row16_col1\" class=\"data row16 col1\" >5 10 25</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row17\" class=\"row_heading level1 row17\" >4</th>\n", | |
" <td id=\"T_155a8_row17_col0\" class=\"data row17 col0\" ></td>\n", | |
" <td id=\"T_155a8_row17_col1\" class=\"data row17 col1\" >aaaaa-bbb-z-y-x-123[abxyz]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row18\" class=\"row_heading level1 row18\" >5</th>\n", | |
" <td id=\"T_155a8_row18_col0\" class=\"data row18 col0\" ></td>\n", | |
" <td id=\"T_155a8_row18_col1\" class=\"data row18 col1\" >abc</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row19\" class=\"row_heading level1 row19\" >7</th>\n", | |
" <td id=\"T_155a8_row19_col0\" class=\"data row19 col0\" ></td>\n", | |
" <td id=\"T_155a8_row19_col1\" class=\"data row19 col1\" >abba[mnop]qrst</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row20\" class=\"row_heading level1 row20\" >8</th>\n", | |
" <td id=\"T_155a8_row20_col0\" class=\"data row20 col0\" >###....\n", | |
"###....\n", | |
".......</td>\n", | |
" <td id=\"T_155a8_row20_col1\" class=\"data row20 col1\" >rotate column x=1 by 1</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row21\" class=\"row_heading level1 row21\" >9</th>\n", | |
" <td id=\"T_155a8_row21_col0\" class=\"data row21 col0\" ></td>\n", | |
" <td id=\"T_155a8_row21_col1\" class=\"data row21 col1\" >A(1x5)BC</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row22\" class=\"row_heading level1 row22\" >13</th>\n", | |
" <td id=\"T_155a8_row22_col0\" class=\"data row22 col0\" > 0123456789\n", | |
"0 .#.####.##\n", | |
"1 ..#..#...#\n", | |
"2 #....##...\n", | |
"3 ###.#.###.\n", | |
"4 .##..#..#.\n", | |
"5 ..##....#.\n", | |
"6 #...##.###</td>\n", | |
" <td id=\"T_155a8_row22_col1\" class=\"data row22 col1\" ></td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row23\" class=\"row_heading level1 row23\" >14</th>\n", | |
" <td id=\"T_155a8_row23_col0\" class=\"data row23 col0\" ></td>\n", | |
" <td id=\"T_155a8_row23_col1\" class=\"data row23 col1\" >abc</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row24\" class=\"row_heading level1 row24\" >17</th>\n", | |
" <td id=\"T_155a8_row24_col0\" class=\"data row24 col0\" >#########\n", | |
"#S| | | #\n", | |
"#-#-#-#-#\n", | |
"# | | | #\n", | |
"#-#-#-#-#\n", | |
"# | | | #\n", | |
"#-#-#-#-#\n", | |
"# | | | \n", | |
"####### V</td>\n", | |
" <td id=\"T_155a8_row24_col1\" class=\"data row24 col1\" ></td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row25\" class=\"row_heading level1 row25\" >18</th>\n", | |
" <td id=\"T_155a8_row25_col0\" class=\"data row25 col0\" >ABCDE\n", | |
"12345</td>\n", | |
" <td id=\"T_155a8_row25_col1\" class=\"data row25 col1\" >..^^.</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row26\" class=\"row_heading level1 row26\" >19</th>\n", | |
" <td id=\"T_155a8_row26_col0\" class=\"data row26 col0\" > 1\n", | |
"5 2\n", | |
" 4 3</td>\n", | |
" <td id=\"T_155a8_row26_col1\" class=\"data row26 col1\" ></td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row27\" class=\"row_heading level1 row27\" >21</th>\n", | |
" <td id=\"T_155a8_row27_col0\" class=\"data row27 col0\" ></td>\n", | |
" <td id=\"T_155a8_row27_col1\" class=\"data row27 col1\" >swap position 4 with position 0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row28\" class=\"row_heading level1 row28\" >22</th>\n", | |
" <td id=\"T_155a8_row28_col0\" class=\"data row28 col0\" ></td>\n", | |
" <td id=\"T_155a8_row28_col1\" class=\"data row28 col1\" >/dev/grid/node-x0-y0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row29\" class=\"row_heading level1 row29\" >25</th>\n", | |
" <td id=\"T_155a8_row29_col0\" class=\"data row29 col0\" ></td>\n", | |
" <td id=\"T_155a8_row29_col1\" class=\"data row29 col1\" >out x</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level0_row30\" class=\"row_heading level0 row30\" rowspan=\"11\">2017</th>\n", | |
" <th id=\"T_155a8_level1_row30\" class=\"row_heading level1 row30\" >1</th>\n", | |
" <td id=\"T_155a8_row30_col0\" class=\"data row30 col0\" ></td>\n", | |
" <td id=\"T_155a8_row30_col1\" class=\"data row30 col1\" >1122</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row31\" class=\"row_heading level1 row31\" >3</th>\n", | |
" <td id=\"T_155a8_row31_col0\" class=\"data row31 col0\" >17 16 15 14 13\n", | |
"18 5 4 3 12\n", | |
"19 6 1 2 11\n", | |
"20 7 8 9 10\n", | |
"21 22 23---> ...</td>\n", | |
" <td id=\"T_155a8_row31_col1\" class=\"data row31 col1\" ></td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row32\" class=\"row_heading level1 row32\" >4</th>\n", | |
" <td id=\"T_155a8_row32_col0\" class=\"data row32 col0\" ></td>\n", | |
" <td id=\"T_155a8_row32_col1\" class=\"data row32 col1\" >aa bb cc dd ee</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row33\" class=\"row_heading level1 row33\" >9</th>\n", | |
" <td id=\"T_155a8_row33_col0\" class=\"data row33 col0\" ></td>\n", | |
" <td id=\"T_155a8_row33_col1\" class=\"data row33 col1\" ><{o\"i!a,<{i<a></td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row34\" class=\"row_heading level1 row34\" >10</th>\n", | |
" <td id=\"T_155a8_row34_col0\" class=\"data row34 col0\" > 4--5 pinch 4 5 4 1\n", | |
" / \\ 5,0,1 / \\/ \\ twist / \\ / \\\n", | |
"3 0 --> 3 0 --> 3 X 0\n", | |
" \\ / \\ /\\ / \\ / \\ /\n", | |
" 2--1 2 1 2 5</td>\n", | |
" <td id=\"T_155a8_row34_col1\" class=\"data row34 col1\" >0, 1, 2, 3, 4</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row35\" class=\"row_heading level1 row35\" >11</th>\n", | |
" <td id=\"T_155a8_row35_col0\" class=\"data row35 col0\" > \\ n /\n", | |
"nw +--+ ne\n", | |
" / \\\n", | |
"-+ +-\n", | |
" \\ /\n", | |
"sw +--+ se\n", | |
" / s \\</td>\n", | |
" <td id=\"T_155a8_row35_col1\" class=\"data row35 col1\" >ne,ne,ne</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row36\" class=\"row_heading level1 row36\" >14</th>\n", | |
" <td id=\"T_155a8_row36_col0\" class=\"data row36 col0\" >##.#.#..-->\n", | |
".#.#.#.# \n", | |
"....#.#. \n", | |
"#.#.##.# \n", | |
".##.#... \n", | |
"##..#..# \n", | |
".#...#.. \n", | |
"##.#.##.-->\n", | |
"| | \n", | |
"V V </td>\n", | |
" <td id=\"T_155a8_row36_col1\" class=\"data row36 col1\" >flqrgnkx</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row37\" class=\"row_heading level1 row37\" >16</th>\n", | |
" <td id=\"T_155a8_row37_col0\" class=\"data row37 col0\" ></td>\n", | |
" <td id=\"T_155a8_row37_col1\" class=\"data row37 col1\" >x3/4</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row38\" class=\"row_heading level1 row38\" >17</th>\n", | |
" <td id=\"T_155a8_row38_col0\" class=\"data row38 col0\" >1512 1134 151 (2017) 638 1513 851</td>\n", | |
" <td id=\"T_155a8_row38_col1\" class=\"data row38 col1\" ></td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row39\" class=\"row_heading level1 row39\" >21</th>\n", | |
" <td id=\"T_155a8_row39_col0\" class=\"data row39 col0\" >.#.\n", | |
"..#\n", | |
"###</td>\n", | |
" <td id=\"T_155a8_row39_col1\" class=\"data row39 col1\" >../.# => ##./#../...\n", | |
".#./..#/### => #..#/..../..../#..#</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row40\" class=\"row_heading level1 row40\" >23</th>\n", | |
" <td id=\"T_155a8_row40_col0\" class=\"data row40 col0\" ></td>\n", | |
" <td id=\"T_155a8_row40_col1\" class=\"data row40 col1\" >-1</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level0_row41\" class=\"row_heading level0 row41\" rowspan=\"13\">2018</th>\n", | |
" <th id=\"T_155a8_level1_row41\" class=\"row_heading level1 row41\" >1</th>\n", | |
" <td id=\"T_155a8_row41_col0\" class=\"data row41 col0\" ></td>\n", | |
" <td id=\"T_155a8_row41_col1\" class=\"data row41 col1\" >+6</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row42\" class=\"row_heading level1 row42\" >2</th>\n", | |
" <td id=\"T_155a8_row42_col0\" class=\"data row42 col0\" >abcde\n", | |
"fghij\n", | |
"klmno\n", | |
"pqrst\n", | |
"fguij\n", | |
"axcye\n", | |
"wvxyz</td>\n", | |
" <td id=\"T_155a8_row42_col1\" class=\"data row42 col1\" >abcdef</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row43\" class=\"row_heading level1 row43\" >3</th>\n", | |
" <td id=\"T_155a8_row43_col0\" class=\"data row43 col0\" >...........\n", | |
"...........\n", | |
"...#####...\n", | |
"...#####...\n", | |
"...#####...\n", | |
"...#####...\n", | |
"...........\n", | |
"...........\n", | |
"...........</td>\n", | |
" <td id=\"T_155a8_row43_col1\" class=\"data row43 col1\" >#1 @ 1,3: 4x4\n", | |
"#2 @ 3,1: 4x4\n", | |
"#3 @ 5,5: 2x2</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row44\" class=\"row_heading level1 row44\" >5</th>\n", | |
" <td id=\"T_155a8_row44_col0\" class=\"data row44 col0\" >dabAcCaCBAcCcaDA The first 'cC' is removed.\n", | |
"dabAaCBAcCcaDA This creates 'Aa', which is removed.\n", | |
"dabCBAcCcaDA Either 'cC' or 'Cc' are removed (the result is the same).\n", | |
"dabCBAcaDA No further actions can be taken.</td>\n", | |
" <td id=\"T_155a8_row44_col1\" class=\"data row44 col1\" >aA</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row45\" class=\"row_heading level1 row45\" >8</th>\n", | |
" <td id=\"T_155a8_row45_col0\" class=\"data row45 col0\" >2 3 0 3 10 11 12 1 1 0 1 99 2 1 1 2\n", | |
"A----------------------------------\n", | |
" B----------- C-----------\n", | |
" D-----</td>\n", | |
" <td id=\"T_155a8_row45_col1\" class=\"data row45 col1\" ></td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row46\" class=\"row_heading level1 row46\" >9</th>\n", | |
" <td id=\"T_155a8_row46_col0\" class=\"data row46 col0\" >[-] (0)\n", | |
"[1] 0 (1)\n", | |
"[2] 0 (2) 1 \n", | |
"[3] 0 2 1 (3)\n", | |
"[4] 0 (4) 2 1 3 \n", | |
"[5] 0 4 2 (5) 1 3 \n", | |
"[6] 0 4 2 5 1 (6) 3 \n", | |
"[7] 0 4 2 5 1 6 3 (7)\n", | |
"[8] 0 (8) 4 2 5 1 6 3 7 \n", | |
"[9] 0 8 4 (9) 2 5 1 6 3 7 \n", | |
"[1] 0 8 4 9 2(10) 5 1 6 3 7 \n", | |
"[2] 0 8 4 9 2 10 5(11) 1 6 3 7 \n", | |
"[3] 0 8 4 9 2 10 5 11 1(12) 6 3 7 \n", | |
"[4] 0 8 4 9 2 10 5 11 1 12 6(13) 3 7 \n", | |
"[5] 0 8 4 9 2 10 5 11 1 12 6 13 3(14) 7 \n", | |
"[6] 0 8 4 9 2 10 5 11 1 12 6 13 3 14 7(15)\n", | |
"[7] 0(16) 8 4 9 2 10 5 11 1 12 6 13 3 14 7 15 \n", | |
"[8] 0 16 8(17) 4 9 2 10 5 11 1 12 6 13 3 14 7 15 \n", | |
"[9] 0 16 8 17 4(18) 9 2 10 5 11 1 12 6 13 3 14 7 15 \n", | |
"[1] 0 16 8 17 4 18 9(19) 2 10 5 11 1 12 6 13 3 14 7 15 \n", | |
"[2] 0 16 8 17 4 18 9 19 2(20)10 5 11 1 12 6 13 3 14 7 15 \n", | |
"[3] 0 16 8 17 4 18 9 19 2 20 10(21) 5 11 1 12 6 13 3 14 7 15 \n", | |
"[4] 0 16 8 17 4 18 9 19 2 20 10 21 5(22)11 1 12 6 13 3 14 7 15 \n", | |
"[5] 0 16 8 17 4 18(19) 2 20 10 21 5 22 11 1 12 6 13 3 14 7 15 \n", | |
"[6] 0 16 8 17 4 18 19 2(24)20 10 21 5 22 11 1 12 6 13 3 14 7 15 \n", | |
"[7] 0 16 8 17 4 18 19 2 24 20(25)10 21 5 22 11 1 12 6 13 3 14 7 15</td>\n", | |
" <td id=\"T_155a8_row46_col1\" class=\"data row46 col1\" ></td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row47\" class=\"row_heading level1 row47\" >11</th>\n", | |
" <td id=\"T_155a8_row47_col0\" class=\"data row47 col0\" >-2 -4 4 4 4\n", | |
"-4 4 4 4 -5\n", | |
" 4 3 3 4 -4\n", | |
" 1 1 2 4 -3\n", | |
"-1 0 2 -5 -2</td>\n", | |
" <td id=\"T_155a8_row47_col1\" class=\"data row47 col1\" >12345</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row48\" class=\"row_heading level1 row48\" >13</th>\n", | |
" <td id=\"T_155a8_row48_col0\" class=\"data row48 col0\" >/----\\\n", | |
"| |\n", | |
"| |\n", | |
"\\----/</td>\n", | |
" <td id=\"T_155a8_row48_col1\" class=\"data row48 col1\" >/->-\\ \n", | |
"| | /----\\\n", | |
"| /-+--+-\\ |\n", | |
"| | | | v |\n", | |
"\\-+-/ \\-+--/\n", | |
" \\------/ \n", | |
"\n", | |
"/-->\\ \n", | |
"| | /----\\\n", | |
"| /-+--+-\\ |\n", | |
"| | | | | |\n", | |
"\\-+-/ \\->--/\n", | |
" \\------/ \n", | |
"\n", | |
"/---v \n", | |
"| | /----\\\n", | |
"| /-+--+-\\ |\n", | |
"| | | | | |\n", | |
"\\-+-/ \\-+>-/\n", | |
" \\------/ \n", | |
"\n", | |
"/---\\ \n", | |
"| v /----\\\n", | |
"| /-+--+-\\ |\n", | |
"| | | | | |\n", | |
"\\-+-/ \\-+->/\n", | |
" \\------/ \n", | |
"\n", | |
"/---\\ \n", | |
"| | /----\\\n", | |
"| /->--+-\\ |\n", | |
"| | | | | |\n", | |
"\\-+-/ \\-+--^\n", | |
" \\------/ \n", | |
"\n", | |
"/---\\ \n", | |
"| | /----\\\n", | |
"| /-+>-+-\\ |\n", | |
"| | | | | ^\n", | |
"\\-+-/ \\-+--/\n", | |
" \\------/ \n", | |
"\n", | |
"/---\\ \n", | |
"| | /----\\\n", | |
"| /-+->+-\\ ^\n", | |
"| | | | | |\n", | |
"\\-+-/ \\-+--/\n", | |
" \\------/ \n", | |
"\n", | |
"/---\\ \n", | |
"| | /----<\n", | |
"| /-+-->-\\ |\n", | |
"| | | | | |\n", | |
"\\-+-/ \\-+--/\n", | |
" \\------/ \n", | |
"\n", | |
"/---\\ \n", | |
"| | /---<\\\n", | |
"| /-+--+>\\ |\n", | |
"| | | | | |\n", | |
"\\-+-/ \\-+--/\n", | |
" \\------/ \n", | |
"\n", | |
"/---\\ \n", | |
"| | /--<-\\\n", | |
"| /-+--+-v |\n", | |
"| | | | | |\n", | |
"\\-+-/ \\-+--/\n", | |
" \\------/ \n", | |
"\n", | |
"/---\\ \n", | |
"| | /-<--\\\n", | |
"| /-+--+-\\ |\n", | |
"| | | | v |\n", | |
"\\-+-/ \\-+--/\n", | |
" \\------/ \n", | |
"\n", | |
"/---\\ \n", | |
"| | /<---\\\n", | |
"| /-+--+-\\ |\n", | |
"| | | | | |\n", | |
"\\-+-/ \\-<--/\n", | |
" \\------/ \n", | |
"\n", | |
"/---\\ \n", | |
"| | v----\\\n", | |
"| /-+--+-\\ |\n", | |
"| | | | | |\n", | |
"\\-+-/ \\<+--/\n", | |
" \\------/ \n", | |
"\n", | |
"/---\\ \n", | |
"| | /----\\\n", | |
"| /-+--v-\\ |\n", | |
"| | | | | |\n", | |
"\\-+-/ ^-+--/\n", | |
" \\------/ \n", | |
"\n", | |
"/---\\ \n", | |
"| | /----\\\n", | |
"| /-+--+-\\ |\n", | |
"| | | X | |\n", | |
"\\-+-/ \\-+--/\n", | |
" \\------/ </td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row49\" class=\"row_heading level1 row49\" >14</th>\n", | |
" <td id=\"T_155a8_row49_col0\" class=\"data row49 col0\" >(3)[7]\n", | |
"(3)[7] 1 0 \n", | |
" 3 7 1 [0](1) 0 \n", | |
" 3 7 1 0 [1] 0 (1)\n", | |
"(3) 7 1 0 1 0 [1] 2 \n", | |
" 3 7 1 0 (1) 0 1 2 [4]\n", | |
" 3 7 1 [0] 1 0 (1) 2 4 5 \n", | |
" 3 7 1 0 [1] 0 1 2 (4) 5 1 \n", | |
" 3 (7) 1 0 1 0 [1] 2 4 5 1 5 \n", | |
" 3 7 1 0 1 0 1 2 [4](5) 1 5 8 \n", | |
" 3 (7) 1 0 1 0 1 2 4 5 1 5 8 [9]\n", | |
" 3 7 1 0 1 0 1 [2] 4 (5) 1 5 8 9 1 6 \n", | |
" 3 7 1 0 1 0 1 2 4 5 [1] 5 8 9 1 (6) 7 \n", | |
" 3 7 1 0 (1) 0 1 2 4 5 1 5 [8] 9 1 6 7 7 \n", | |
" 3 7 [1] 0 1 0 (1) 2 4 5 1 5 8 9 1 6 7 7 9 \n", | |
" 3 7 1 0 [1] 0 1 2 (4) 5 1 5 8 9 1 6 7 7 9 2 </td>\n", | |
" <td id=\"T_155a8_row49_col1\" class=\"data row49 col1\" ></td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row50\" class=\"row_heading level1 row50\" >20</th>\n", | |
" <td id=\"T_155a8_row50_col0\" class=\"data row50 col0\" >#####\n", | |
"#.|.#\n", | |
"#-###\n", | |
"#.|X#\n", | |
"#####</td>\n", | |
" <td id=\"T_155a8_row50_col1\" class=\"data row50 col1\" >^N(E|W)N$</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row51\" class=\"row_heading level1 row51\" >22</th>\n", | |
" <td id=\"T_155a8_row51_col0\" class=\"data row51 col0\" >M=.|=.|.|=.|=|=.\n", | |
".|=|=|||..|.=...\n", | |
".==|....||=..|==\n", | |
"=.|....|.==.|==.\n", | |
"=|..==...=.|==..\n", | |
"=||.=.=||=|=..|=\n", | |
"|.=.===|||..=..|\n", | |
"|..==||=.|==|===\n", | |
".=..===..=|.|||.\n", | |
".======|||=|=.|=\n", | |
".===|=|===T===||\n", | |
"=|||...|==..|=.|\n", | |
"=.=|=.=..=.||==|\n", | |
"||=|=...|==.=|==\n", | |
"|=.=||===.|||===\n", | |
"||.|==.|.|.||=||</td>\n", | |
" <td id=\"T_155a8_row51_col1\" class=\"data row51 col1\" >0,0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row52\" class=\"row_heading level1 row52\" >24</th>\n", | |
" <td id=\"T_155a8_row52_col0\" class=\"data row52 col0\" >18 units each with 729 hit points (weak to fire; immune to cold, slashing)\n", | |
" with an attack that does 8 radiation damage at initiative 10</td>\n", | |
" <td id=\"T_155a8_row52_col1\" class=\"data row52 col1\" >Immune System:\n", | |
"17 units each with 5390 hit points (weak to radiation, bludgeoning) with\n", | |
" an attack that does 4507 fire damage at initiative 2\n", | |
"989 units each with 1274 hit points (immune to fire; weak to bludgeoning,\n", | |
" slashing) with an attack that does 25 slashing damage at initiative 3\n", | |
"\n", | |
"Infection:\n", | |
"801 units each with 4706 hit points (weak to radiation) with an attack\n", | |
" that does 116 bludgeoning damage at initiative 1\n", | |
"4485 units each with 2961 hit points (immune to radiation; weak to fire,\n", | |
" cold) with an attack that does 12 slashing damage at initiative 4</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row53\" class=\"row_heading level1 row53\" >25</th>\n", | |
" <td id=\"T_155a8_row53_col0\" class=\"data row53 col0\" > 0,0,0,0\n", | |
" 3,0,0,0\n", | |
" 0,3,0,0\n", | |
" 0,0,3,0\n", | |
" 0,0,0,3\n", | |
" 0,0,0,6\n", | |
" 9,0,0,0\n", | |
"12,0,0,0</td>\n", | |
" <td id=\"T_155a8_row53_col1\" class=\"data row53 col1\" >-1,2,2,0\n", | |
"0,0,2,-2\n", | |
"0,0,0,-2\n", | |
"-1,2,0,0\n", | |
"-2,-2,-2,2\n", | |
"3,0,2,-1\n", | |
"-1,3,2,2\n", | |
"-1,0,-1,0\n", | |
"0,2,1,-2\n", | |
"3,0,0,0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level0_row54\" class=\"row_heading level0 row54\" rowspan=\"20\">2019</th>\n", | |
" <th id=\"T_155a8_level1_row54\" class=\"row_heading level1 row54\" >1</th>\n", | |
" <td id=\"T_155a8_row54_col0\" class=\"data row54 col0\" ></td>\n", | |
" <td id=\"T_155a8_row54_col1\" class=\"data row54 col1\" >12</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row55\" class=\"row_heading level1 row55\" >2</th>\n", | |
" <td id=\"T_155a8_row55_col0\" class=\"data row55 col0\" >1,9,10,3,2,3,11,0,99,30,40,50</td>\n", | |
" <td id=\"T_155a8_row55_col1\" class=\"data row55 col1\" >1,0,0,3,99</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row56\" class=\"row_heading level1 row56\" >3</th>\n", | |
" <td id=\"T_155a8_row56_col0\" class=\"data row56 col0\" >...........\n", | |
"...........\n", | |
"...........\n", | |
"....+----+.\n", | |
"....|....|.\n", | |
"....|....|.\n", | |
"....|....|.\n", | |
".........|.\n", | |
".o-------+.\n", | |
"...........</td>\n", | |
" <td id=\"T_155a8_row56_col1\" class=\"data row56 col1\" >R8,U5,L5,D3</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row57\" class=\"row_heading level1 row57\" >4</th>\n", | |
" <td id=\"T_155a8_row57_col0\" class=\"data row57 col0\" ></td>\n", | |
" <td id=\"T_155a8_row57_col1\" class=\"data row57 col1\" >22</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row58\" class=\"row_heading level1 row58\" >5</th>\n", | |
" <td id=\"T_155a8_row58_col0\" class=\"data row58 col0\" >ABCDE\n", | |
" 1002\n", | |
"\n", | |
"DE - two-digit opcode, 02 == opcode 2\n", | |
" C - mode of 1st parameter, 0 == position mode\n", | |
" B - mode of 2nd parameter, 1 == immediate mode\n", | |
" A - mode of 3rd parameter, 0 == position mode,\n", | |
" omitted due to being a leading zero</td>\n", | |
" <td id=\"T_155a8_row58_col1\" class=\"data row58 col1\" >1101,100,-1,4,0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row59\" class=\"row_heading level1 row59\" >6</th>\n", | |
" <td id=\"T_155a8_row59_col0\" class=\"data row59 col0\" > \\\n", | |
" \\\n", | |
" |\n", | |
" |\n", | |
"AAA--> o o <--BBB\n", | |
" |\n", | |
" |\n", | |
" /\n", | |
" /</td>\n", | |
" <td id=\"T_155a8_row59_col1\" class=\"data row59 col1\" >COM)B\n", | |
"B)C\n", | |
"C)D\n", | |
"D)E\n", | |
"E)F\n", | |
"B)G\n", | |
"G)H\n", | |
"D)I\n", | |
"E)J\n", | |
"J)K\n", | |
"K)L</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row60\" class=\"row_heading level1 row60\" >7</th>\n", | |
" <td id=\"T_155a8_row60_col0\" class=\"data row60 col0\" > O-------O O-------O O-------O O-------O O-------O\n", | |
"0 ->| Amp A |->| Amp B |->| Amp C |->| Amp D |->| Amp E |-> (to thrusters)\n", | |
" O-------O O-------O O-------O O-------O O-------O</td>\n", | |
" <td id=\"T_155a8_row60_col1\" class=\"data row60 col1\" >3,1,2,4,0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row61\" class=\"row_heading level1 row61\" >8</th>\n", | |
" <td id=\"T_155a8_row61_col0\" class=\"data row61 col0\" >Layer 1: 123\n", | |
" 456\n", | |
"\n", | |
"Layer 2: 789\n", | |
" 012</td>\n", | |
" <td id=\"T_155a8_row61_col1\" class=\"data row61 col1\" ></td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row62\" class=\"row_heading level1 row62\" >9</th>\n", | |
" <td id=\"T_155a8_row62_col0\" class=\"data row62 col0\" ></td>\n", | |
" <td id=\"T_155a8_row62_col1\" class=\"data row62 col1\" >204,-34</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row63\" class=\"row_heading level1 row63\" >11</th>\n", | |
" <td id=\"T_155a8_row63_col0\" class=\"data row63 col0\" >.....\n", | |
".....\n", | |
"..^..\n", | |
".....\n", | |
".....</td>\n", | |
" <td id=\"T_155a8_row63_col1\" class=\"data row63 col1\" >1,0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row64\" class=\"row_heading level1 row64\" >13</th>\n", | |
" <td id=\"T_155a8_row64_col0\" class=\"data row64 col0\" ></td>\n", | |
" <td id=\"T_155a8_row64_col1\" class=\"data row64 col1\" >1,2,3,6,5,4</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row65\" class=\"row_heading level1 row65\" >15</th>\n", | |
" <td id=\"T_155a8_row65_col0\" class=\"data row65 col0\" > \n", | |
" \n", | |
" D \n", | |
" \n", | |
" </td>\n", | |
" <td id=\"T_155a8_row65_col1\" class=\"data row65 col1\" >4,4,4,4,3,3,3,3</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row66\" class=\"row_heading level1 row66\" >16</th>\n", | |
" <td id=\"T_155a8_row66_col0\" class=\"data row66 col0\" >Input signal: 12345678\n", | |
"\n", | |
"1*1 + 2*0 + 3*-1 + 4*0 + 5*1 + 6*0 + 7*-1 + 8*0 = 4\n", | |
"1*0 + 2*1 + 3*1 + 4*0 + 5*0 + 6*-1 + 7*-1 + 8*0 = 8\n", | |
"1*0 + 2*0 + 3*1 + 4*1 + 5*1 + 6*0 + 7*0 + 8*0 = 2\n", | |
"1*0 + 2*0 + 3*0 + 4*1 + 5*1 + 6*1 + 7*1 + 8*0 = 2\n", | |
"1*0 + 2*0 + 3*0 + 4*0 + 5*1 + 6*1 + 7*1 + 8*1 = 6\n", | |
"1*0 + 2*0 + 3*0 + 4*0 + 5*0 + 6*1 + 7*1 + 8*1 = 1\n", | |
"1*0 + 2*0 + 3*0 + 4*0 + 5*0 + 6*0 + 7*1 + 8*1 = 5\n", | |
"1*0 + 2*0 + 3*0 + 4*0 + 5*0 + 6*0 + 7*0 + 8*1 = 8\n", | |
"\n", | |
"After 1 phase: 48226158\n", | |
"\n", | |
"4*1 + 8*0 + 2*-1 + 2*0 + 6*1 + 1*0 + 5*-1 + 8*0 = 3\n", | |
"4*0 + 8*1 + 2*1 + 2*0 + 6*0 + 1*-1 + 5*-1 + 8*0 = 4\n", | |
"4*0 + 8*0 + 2*1 + 2*1 + 6*1 + 1*0 + 5*0 + 8*0 = 0\n", | |
"4*0 + 8*0 + 2*0 + 2*1 + 6*1 + 1*1 + 5*1 + 8*0 = 4\n", | |
"4*0 + 8*0 + 2*0 + 2*0 + 6*1 + 1*1 + 5*1 + 8*1 = 0\n", | |
"4*0 + 8*0 + 2*0 + 2*0 + 6*0 + 1*1 + 5*1 + 8*1 = 4\n", | |
"4*0 + 8*0 + 2*0 + 2*0 + 6*0 + 1*0 + 5*1 + 8*1 = 3\n", | |
"4*0 + 8*0 + 2*0 + 2*0 + 6*0 + 1*0 + 5*0 + 8*1 = 8\n", | |
"\n", | |
"After 2 phases: 34040438\n", | |
"\n", | |
"3*1 + 4*0 + 0*-1 + 4*0 + 0*1 + 4*0 + 3*-1 + 8*0 = 0\n", | |
"3*0 + 4*1 + 0*1 + 4*0 + 0*0 + 4*-1 + 3*-1 + 8*0 = 3\n", | |
"3*0 + 4*0 + 0*1 + 4*1 + 0*1 + 4*0 + 3*0 + 8*0 = 4\n", | |
"3*0 + 4*0 + 0*0 + 4*1 + 0*1 + 4*1 + 3*1 + 8*0 = 1\n", | |
"3*0 + 4*0 + 0*0 + 4*0 + 0*1 + 4*1 + 3*1 + 8*1 = 5\n", | |
"3*0 + 4*0 + 0*0 + 4*0 + 0*0 + 4*1 + 3*1 + 8*1 = 5\n", | |
"3*0 + 4*0 + 0*0 + 4*0 + 0*0 + 4*0 + 3*1 + 8*1 = 1\n", | |
"3*0 + 4*0 + 0*0 + 4*0 + 0*0 + 4*0 + 3*0 + 8*1 = 8\n", | |
"\n", | |
"After 3 phases: 03415518\n", | |
"\n", | |
"0*1 + 3*0 + 4*-1 + 1*0 + 5*1 + 5*0 + 1*-1 + 8*0 = 0\n", | |
"0*0 + 3*1 + 4*1 + 1*0 + 5*0 + 5*-1 + 1*-1 + 8*0 = 1\n", | |
"0*0 + 3*0 + 4*1 + 1*1 + 5*1 + 5*0 + 1*0 + 8*0 = 0\n", | |
"0*0 + 3*0 + 4*0 + 1*1 + 5*1 + 5*1 + 1*1 + 8*0 = 2\n", | |
"0*0 + 3*0 + 4*0 + 1*0 + 5*1 + 5*1 + 1*1 + 8*1 = 9\n", | |
"0*0 + 3*0 + 4*0 + 1*0 + 5*0 + 5*1 + 1*1 + 8*1 = 4\n", | |
"0*0 + 3*0 + 4*0 + 1*0 + 5*0 + 5*0 + 1*1 + 8*1 = 9\n", | |
"0*0 + 3*0 + 4*0 + 1*0 + 5*0 + 5*0 + 1*0 + 8*1 = 8\n", | |
"\n", | |
"After 4 phases: 01029498</td>\n", | |
" <td id=\"T_155a8_row66_col1\" class=\"data row66 col1\" >15243</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row67\" class=\"row_heading level1 row67\" >17</th>\n", | |
" <td id=\"T_155a8_row67_col0\" class=\"data row67 col0\" >..#..........\n", | |
"..#..........\n", | |
"#######...###\n", | |
"#.#...#...#.#\n", | |
"#############\n", | |
"..#...#...#..\n", | |
"..#####...^..</td>\n", | |
" <td id=\"T_155a8_row67_col1\" class=\"data row67 col1\" >35</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row68\" class=\"row_heading level1 row68\" >19</th>\n", | |
" <td id=\"T_155a8_row68_col0\" class=\"data row68 col0\" > X\n", | |
" 0-> 9\n", | |
" 0#.........\n", | |
" |.#........\n", | |
" v..##......\n", | |
" ...###....\n", | |
" ....###...\n", | |
"Y .....####.\n", | |
" ......####\n", | |
" ......####\n", | |
" .......###\n", | |
" 9........##</td>\n", | |
" <td id=\"T_155a8_row68_col1\" class=\"data row68 col1\" ></td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row69\" class=\"row_heading level1 row69\" >21</th>\n", | |
" <td id=\"T_155a8_row69_col0\" class=\"data row69 col0\" >NOT A J\n", | |
"NOT B T\n", | |
"AND T J\n", | |
"NOT C T\n", | |
"AND T J\n", | |
"AND D J</td>\n", | |
" <td id=\"T_155a8_row69_col1\" class=\"data row69 col1\" >10</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row70\" class=\"row_heading level1 row70\" >22</th>\n", | |
" <td id=\"T_155a8_row70_col0\" class=\"data row70 col0\" >Top Bottom\n", | |
"0 1 2 3 4 5 6 7 8 9 Your deck\n", | |
" New stack\n", | |
"\n", | |
" 1 2 3 4 5 6 7 8 9 Your deck\n", | |
" 0 New stack\n", | |
"\n", | |
" 2 3 4 5 6 7 8 9 Your deck\n", | |
" 1 0 New stack\n", | |
"\n", | |
" 3 4 5 6 7 8 9 Your deck\n", | |
" 2 1 0 New stack\n", | |
"\n", | |
"Several steps later...\n", | |
"\n", | |
" 9 Your deck\n", | |
" 8 7 6 5 4 3 2 1 0 New stack\n", | |
"\n", | |
" Your deck\n", | |
"9 8 7 6 5 4 3 2 1 0 New stack</td>\n", | |
" <td id=\"T_155a8_row70_col1\" class=\"data row70 col1\" >cut -4</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row71\" class=\"row_heading level1 row71\" >23</th>\n", | |
" <td id=\"T_155a8_row71_col0\" class=\"data row71 col0\" ></td>\n", | |
" <td id=\"T_155a8_row71_col1\" class=\"data row71 col1\" >-1</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row72\" class=\"row_heading level1 row72\" >24</th>\n", | |
" <td id=\"T_155a8_row72_col0\" class=\"data row72 col0\" >Initial state:\n", | |
"....#\n", | |
"#..#.\n", | |
"#..##\n", | |
"..#..\n", | |
"#....\n", | |
"\n", | |
"After 1 minute:\n", | |
"#..#.\n", | |
"####.\n", | |
"###.#\n", | |
"##.##\n", | |
".##..\n", | |
"\n", | |
"After 2 minutes:\n", | |
"#####\n", | |
"....#\n", | |
"....#\n", | |
"...#.\n", | |
"#.###\n", | |
"\n", | |
"After 3 minutes:\n", | |
"#....\n", | |
"####.\n", | |
"...##\n", | |
"#.##.\n", | |
".##.#\n", | |
"\n", | |
"After 4 minutes:\n", | |
"####.\n", | |
"....#\n", | |
"##..#\n", | |
".....\n", | |
"##...</td>\n", | |
" <td id=\"T_155a8_row72_col1\" class=\"data row72 col1\" >.....\n", | |
".....\n", | |
".....\n", | |
"#....\n", | |
".#...</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row73\" class=\"row_heading level1 row73\" >25</th>\n", | |
" <td id=\"T_155a8_row73_col0\" class=\"data row73 col0\" ></td>\n", | |
" <td id=\"T_155a8_row73_col1\" class=\"data row73 col1\" >-40</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level0_row74\" class=\"row_heading level0 row74\" rowspan=\"5\">2020</th>\n", | |
" <th id=\"T_155a8_level1_row74\" class=\"row_heading level1 row74\" >5</th>\n", | |
" <td id=\"T_155a8_row74_col0\" class=\"data row74 col0\" ></td>\n", | |
" <td id=\"T_155a8_row74_col1\" class=\"data row74 col1\" >FBFBBFFRLR</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row75\" class=\"row_heading level1 row75\" >15</th>\n", | |
" <td id=\"T_155a8_row75_col0\" class=\"data row75 col0\" ></td>\n", | |
" <td id=\"T_155a8_row75_col1\" class=\"data row75 col1\" >0,3,6</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row76\" class=\"row_heading level1 row76\" >16</th>\n", | |
" <td id=\"T_155a8_row76_col0\" class=\"data row76 col0\" >.--------------------------------------------------------.\n", | |
"| ????: 101 ?????: 102 ??????????: 103 ???: 104 |\n", | |
"| |\n", | |
"| ??: 301 ??: 302 ???????: 303 ??????? |\n", | |
"| ??: 401 ??: 402 ???? ????: 403 ????????? |\n", | |
"'--------------------------------------------------------'</td>\n", | |
" <td id=\"T_155a8_row76_col1\" class=\"data row76 col1\" >class: 1-3 or 5-7\n", | |
"row: 6-11 or 33-44\n", | |
"seat: 13-40 or 45-50\n", | |
"\n", | |
"your ticket:\n", | |
"7,1,14\n", | |
"\n", | |
"nearby tickets:\n", | |
"7,3,47\n", | |
"40,4,50\n", | |
"55,2,20\n", | |
"38,6,12</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row77\" class=\"row_heading level1 row77\" >18</th>\n", | |
" <td id=\"T_155a8_row77_col0\" class=\"data row77 col0\" >1 + 2 * 3 + 4 * 5 + 6\n", | |
" 3 * 3 + 4 * 5 + 6\n", | |
" 9 + 4 * 5 + 6\n", | |
" 13 * 5 + 6\n", | |
" 65 + 6\n", | |
" 71</td>\n", | |
" <td id=\"T_155a8_row77_col1\" class=\"data row77 col1\" >1 + (2 * 3) + (4 * (5 + 6))\n", | |
"1 + 6 + (4 * (5 + 6))\n", | |
" 7 + (4 * (5 + 6))\n", | |
" 7 + (4 * 11 )\n", | |
" 7 + 44\n", | |
" 51</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row78\" class=\"row_heading level1 row78\" >23</th>\n", | |
" <td id=\"T_155a8_row78_col0\" class=\"data row78 col0\" >-- move 1 --\n", | |
"cups: (3) 8 9 1 2 5 4 6 7 \n", | |
"pick up: 8, 9, 1\n", | |
"destination: 2\n", | |
"\n", | |
"-- move 2 --\n", | |
"cups: 3 (2) 8 9 1 5 4 6 7 \n", | |
"pick up: 8, 9, 1\n", | |
"destination: 7\n", | |
"\n", | |
"-- move 3 --\n", | |
"cups: 3 2 (5) 4 6 7 8 9 1 \n", | |
"pick up: 4, 6, 7\n", | |
"destination: 3\n", | |
"\n", | |
"-- move 4 --\n", | |
"cups: 7 2 5 (8) 9 1 3 4 6 \n", | |
"pick up: 9, 1, 3\n", | |
"destination: 7\n", | |
"\n", | |
"-- move 5 --\n", | |
"cups: 3 2 5 8 (4) 6 7 9 1 \n", | |
"pick up: 6, 7, 9\n", | |
"destination: 3\n", | |
"\n", | |
"-- move 6 --\n", | |
"cups: 9 2 5 8 4 (1) 3 6 7 \n", | |
"pick up: 3, 6, 7\n", | |
"destination: 9\n", | |
"\n", | |
"-- move 7 --\n", | |
"cups: 7 2 5 8 4 1 (9) 3 6 \n", | |
"pick up: 3, 6, 7\n", | |
"destination: 8\n", | |
"\n", | |
"-- move 8 --\n", | |
"cups: 8 3 6 7 4 1 9 (2) 5 \n", | |
"pick up: 5, 8, 3\n", | |
"destination: 1\n", | |
"\n", | |
"-- move 9 --\n", | |
"cups: 7 4 1 5 8 3 9 2 (6)\n", | |
"pick up: 7, 4, 1\n", | |
"destination: 5\n", | |
"\n", | |
"-- move 10 --\n", | |
"cups: (5) 7 4 1 8 3 9 2 6 \n", | |
"pick up: 7, 4, 1\n", | |
"destination: 3\n", | |
"\n", | |
"-- final --\n", | |
"cups: 5 (8) 3 7 4 1 9 2 6 </td>\n", | |
" <td id=\"T_155a8_row78_col1\" class=\"data row78 col1\" >32415</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level0_row79\" class=\"row_heading level0 row79\" rowspan=\"5\">2021</th>\n", | |
" <th id=\"T_155a8_level1_row79\" class=\"row_heading level1 row79\" >8</th>\n", | |
" <td id=\"T_155a8_row79_col0\" class=\"data row79 col0\" > 0: 1: 2: 3: 4:\n", | |
" aaaa .... aaaa aaaa ....\n", | |
"b c . c . c . c b c\n", | |
"b c . c . c . c b c\n", | |
" .... .... dddd dddd dddd\n", | |
"e f . f e . . f . f\n", | |
"e f . f e . . f . f\n", | |
" gggg .... gggg gggg ....\n", | |
"\n", | |
" 5: 6: 7: 8: 9:\n", | |
" aaaa aaaa aaaa aaaa aaaa\n", | |
"b . b . . c b c b c\n", | |
"b . b . . c b c b c\n", | |
" dddd dddd .... dddd dddd\n", | |
". f e f . f e f . f\n", | |
". f e f . f e f . f\n", | |
" gggg gggg .... gggg gggg</td>\n", | |
" <td id=\"T_155a8_row79_col1\" class=\"data row79 col1\" >acedgfb cdfbe gcdfa fbcad dab cefabd cdfgeb eafb cagedb ab |\n", | |
"cdfeb fcadb cdfeb cdbaf</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row80\" class=\"row_heading level1 row80\" >10</th>\n", | |
" <td id=\"T_155a8_row80_col0\" class=\"data row80 col0\" >Syntax error in navigation subsystem on line: all of them</td>\n", | |
" <td id=\"T_155a8_row80_col1\" class=\"data row80 col1\" >[({(<(())[]>[[{[]{<()<>>\n", | |
"[(()[<>])]({[<{<<[]>>(\n", | |
"{([(<{}[<>[]}>{[]{[(<()>\n", | |
"(((({<>}<{<{<>}{[]{[]{}\n", | |
"[[<[([]))<([[{}[[()]]]\n", | |
"[{[{({}]{}}([{[{{{}}([]\n", | |
"{<[[]]>}<{[{[{[]{()[[[]\n", | |
"[<(<(<(<{}))><([]([]()\n", | |
"<{([([[(<>()){}]>(<<{{\n", | |
"<{([{{}}[<[[[<>{}]]]>[]]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row81\" class=\"row_heading level1 row81\" >13</th>\n", | |
" <td id=\"T_155a8_row81_col0\" class=\"data row81 col0\" >Congratulations on your purchase! To activate this infrared thermal imaging\n", | |
"camera system, please enter the code found on page 1 of the manual.</td>\n", | |
" <td id=\"T_155a8_row81_col1\" class=\"data row81 col1\" >6,10\n", | |
"0,14\n", | |
"9,10\n", | |
"0,3\n", | |
"10,4\n", | |
"4,11\n", | |
"6,0\n", | |
"6,12\n", | |
"4,1\n", | |
"0,13\n", | |
"10,12\n", | |
"3,4\n", | |
"3,0\n", | |
"8,4\n", | |
"1,10\n", | |
"2,14\n", | |
"8,10\n", | |
"9,0\n", | |
"\n", | |
"fold along y=7\n", | |
"fold along x=5</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row82\" class=\"row_heading level1 row82\" >16</th>\n", | |
" <td id=\"T_155a8_row82_col0\" class=\"data row82 col0\" >0 = 0000\n", | |
"1 = 0001\n", | |
"2 = 0010\n", | |
"3 = 0011\n", | |
"4 = 0100\n", | |
"5 = 0101\n", | |
"6 = 0110\n", | |
"7 = 0111\n", | |
"8 = 1000\n", | |
"9 = 1001\n", | |
"A = 1010\n", | |
"B = 1011\n", | |
"C = 1100\n", | |
"D = 1101\n", | |
"E = 1110\n", | |
"F = 1111</td>\n", | |
" <td id=\"T_155a8_row82_col1\" class=\"data row82 col1\" >D2FE28</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row83\" class=\"row_heading level1 row83\" >22</th>\n", | |
" <td id=\"T_155a8_row83_col0\" class=\"data row83 col0\" >on x=10..12,y=10..12,z=10..12\n", | |
"on x=11..13,y=11..13,z=11..13\n", | |
"off x=9..11,y=9..11,z=9..11\n", | |
"on x=10..10,y=10..10,z=10..10</td>\n", | |
" <td id=\"T_155a8_row83_col1\" class=\"data row83 col1\" >on x=-20..26,y=-36..17,z=-47..7\n", | |
"on x=-20..33,y=-21..23,z=-26..28\n", | |
"on x=-22..28,y=-29..23,z=-38..16\n", | |
"on x=-46..7,y=-6..46,z=-50..-1\n", | |
"on x=-49..1,y=-3..46,z=-24..28\n", | |
"on x=2..47,y=-22..22,z=-23..27\n", | |
"on x=-27..23,y=-28..26,z=-21..29\n", | |
"on x=-39..5,y=-6..47,z=-3..44\n", | |
"on x=-30..21,y=-8..43,z=-13..34\n", | |
"on x=-22..26,y=-27..20,z=-29..19\n", | |
"off x=-48..-32,y=26..41,z=-47..-37\n", | |
"on x=-12..35,y=6..50,z=-50..-2\n", | |
"off x=-48..-32,y=-32..-16,z=-15..-5\n", | |
"on x=-18..26,y=-33..15,z=-7..46\n", | |
"off x=-40..-22,y=-38..-28,z=23..41\n", | |
"on x=-16..35,y=-41..10,z=-47..6\n", | |
"off x=-32..-23,y=11..30,z=-14..3\n", | |
"on x=-49..-5,y=-3..45,z=-29..18\n", | |
"off x=18..30,y=-20..-8,z=-3..13\n", | |
"on x=-41..9,y=-7..43,z=-33..15\n", | |
"on x=-54112..-39298,y=-85059..-49293,z=-27449..7877\n", | |
"on x=967..23432,y=45373..81175,z=27513..53682</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level0_row84\" class=\"row_heading level0 row84\" rowspan=\"2\">2022</th>\n", | |
" <th id=\"T_155a8_level1_row84\" class=\"row_heading level1 row84\" >7</th>\n", | |
" <td id=\"T_155a8_row84_col0\" class=\"data row84 col0\" >$ system-update --please --pretty-please-with-sugar-on-top\n", | |
"Error: No space left on device</td>\n", | |
" <td id=\"T_155a8_row84_col1\" class=\"data row84 col1\" >$ cd /\n", | |
"$ ls\n", | |
"dir a\n", | |
"14848514 b.txt\n", | |
"8504156 c.dat\n", | |
"dir d\n", | |
"$ cd a\n", | |
"$ ls\n", | |
"dir e\n", | |
"29116 f\n", | |
"2557 g\n", | |
"62596 h.lst\n", | |
"$ cd e\n", | |
"$ ls\n", | |
"584 i\n", | |
"$ cd ..\n", | |
"$ cd ..\n", | |
"$ cd d\n", | |
"$ ls\n", | |
"4060174 j\n", | |
"8033020 d.log\n", | |
"5626152 d.ext\n", | |
"7214296 k</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th id=\"T_155a8_level1_row85\" class=\"row_heading level1 row85\" >9</th>\n", | |
" <td id=\"T_155a8_row85_col0\" class=\"data row85 col0\" >....\n", | |
".TH.\n", | |
"....\n", | |
"\n", | |
"....\n", | |
".H..\n", | |
"..T.\n", | |
"....\n", | |
"\n", | |
"...\n", | |
".H. (H covers T)\n", | |
"...</td>\n", | |
" <td id=\"T_155a8_row85_col1\" class=\"data row85 col1\" >R 4\n", | |
"U 4\n", | |
"L 3\n", | |
"D 1\n", | |
"R 4\n", | |
"D 1\n", | |
"L 5\n", | |
"R 2</td>\n", | |
" </tr>\n", | |
" </tbody>\n", | |
"</table>\n" | |
], | |
"text/plain": [ | |
"<pandas.io.formats.style.Styler at 0x7fcdc85120b0>" | |
] | |
}, | |
"metadata": {}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"import aocd\n", | |
"import pandas\n", | |
"from IPython.display import display\n", | |
"\n", | |
"\n", | |
"def _simplify(s: str):\n", | |
" \"\"\" Special characters should match exactly, for letters, same class matching is good enough \"\"\"\n", | |
" if s.isupper():\n", | |
" return \"A\"\n", | |
" elif s.islower():\n", | |
" return \"a\"\n", | |
" elif s.isdigit():\n", | |
" return \"1\"\n", | |
" else:\n", | |
" return s\n", | |
"\n", | |
"\n", | |
"def different_rate(a: str, b: str):\n", | |
" \"\"\" Ratio of different to common character classes. see tests for examples \"\"\"\n", | |
" a = set(map(_simplify, a))\n", | |
" b = set(map(_simplify, b))\n", | |
" return len((a | b) - (a & b)) / len(a | b)\n", | |
"\n", | |
"\n", | |
"def example_data(p):\n", | |
" soup = p._soup().article # training data is in the first article\n", | |
" candidates = [c.text.rstrip(\"\\r\\n\") for c in soup.find_all(\"code\")]\n", | |
" if len(candidates) == 1:\n", | |
" best = candidates[0]\n", | |
" elif len(candidates) == 0:\n", | |
" best = \"\"\n", | |
" else:\n", | |
" scores = [different_rate(p.input_data, c) for c in candidates]\n", | |
" best = candidates[scores.index(min(scores))]\n", | |
" return \"\" if len(best) < 2 else best \n", | |
" \n", | |
"\n", | |
"d = []\n", | |
"for year in range(2015, 2023):\n", | |
" for day in range(1, 26 if year < 2022 else 10):\n", | |
" p = aocd.models.Puzzle(year, day)\n", | |
" example_data_ = example_data(p)\n", | |
" if p.example_data != example_data_:\n", | |
" d.append((year, day, p.example_data, example_data_))\n", | |
" pandas.set_option('display.max_colwidth', None)\n", | |
"df = pandas.DataFrame(d, columns=(\"year\", \"day\", \"before\", \"after\")).set_index([\"year\", \"day\"])\n", | |
"display(df.style.set_properties(**{'white-space': 'pre-wrap'}))" | |
] | |
} | |
], | |
"metadata": { | |
"kernelspec": { | |
"display_name": "Python 3 (ipykernel)", | |
"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.10.8" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 5 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment