diff --git a/2022/day1/day1.py b/2022/day1/day1.py deleted file mode 100644 index dea38c6..0000000 --- a/2022/day1/day1.py +++ /dev/null @@ -1,25 +0,0 @@ -def main(): - with open('input.txt', 'r') as f: - # Part 1 - calories = [line for line in f.read().split('\n')] - caloriesPerDay = [0] * len(calories) - index = 0 - for calorie in calories: - if calorie == '': - index += 1 - else: - caloriesPerDay[index] += int(calorie) - nOfElfs = caloriesPerDay.index(0) - caloriesPerElf = caloriesPerDay[:nOfElfs] - print(f"Top elf calorie count: {max(caloriesPerElf)}") - - # Part 2 - sumOfCaloriesOfTopThree = [] - for i in range(3): - sumOfCaloriesOfTopThree.append(max(caloriesPerElf)) - caloriesPerElf.remove(max(caloriesPerElf)) - print(f"Sum of top three elfs: {sum(sumOfCaloriesOfTopThree)}") - - -if __name__ == '__main__': - main() diff --git a/2022/day1/input.txt b/2022/day1/input.txt deleted file mode 100644 index da4f98e..0000000 --- a/2022/day1/input.txt +++ /dev/null @@ -1,2250 +0,0 @@ -9609 -7601 -7142 -5278 -9374 -6815 -1050 -6329 -8016 - -12477 -28601 - -1056 -5037 -1660 -3786 -2611 -6689 -3159 -2973 -5286 -2401 -6231 -7460 - -3689 -3909 -9254 -5704 -10307 -10173 -9336 -4586 - -5476 -16022 -9109 -11504 -6746 - -1006 -1685 -2688 -4776 -6234 -5807 -4943 -4944 -4982 -1731 -3196 -5573 -5269 -1266 - -12097 -15573 -1113 -8920 -14145 - -4723 -2428 -3864 -4657 -5046 -5135 -5104 -1867 -5130 -1751 -6029 -4551 -1924 -4998 -4255 - -2706 -5595 -10508 -3676 -11580 -6061 -7902 - -2523 -11236 -1915 -15774 -7639 - -2996 -3656 -4491 -4493 -6136 -3112 -7342 -3600 -6111 -4229 -7548 - -4200 -8635 -1003 -1223 -3096 -10734 -8319 -3772 - -7063 -3538 -4856 -1250 -1917 -4852 -4792 -7407 -3413 -7326 -7378 -1778 - -1659 -3390 -2802 -3226 -3993 -9583 -6504 -3296 -5998 - -1800 -1144 -2569 -4426 -5871 -4988 -1309 -2330 -3236 -3217 -3778 -2636 -3116 -2300 -1428 - -69249 - -6905 -2506 -2429 -3904 -2960 -1420 -2687 -7150 -1368 -4253 -3584 -1302 - -9585 -34214 - -5442 -8217 -2320 -6864 -1354 -5791 -5492 -4979 -1760 -7753 - -18036 -11876 -1936 -4605 - -10819 -13733 -13726 -10233 - -5450 -4315 -3008 -3419 -5434 -1601 -6834 -2144 -3943 -3573 -6366 -6680 -1197 - -3681 -4233 -3461 -1646 -5161 -3542 -5489 -4635 -1776 -4811 -3026 -4858 -4207 -5716 -4751 - -3271 -5205 -7916 -7618 -8354 -4445 -4604 - -2489 -7439 -6911 -5378 -7363 -2207 -7303 -4757 -5989 -4902 -6889 -5074 - -4451 -34499 - -6519 -7439 -2225 -1237 -2167 -2041 -3403 -8289 -3545 -2936 - -25613 -23988 -15999 - -10278 -9240 -8736 -10445 -5005 -9339 -9059 -9198 - -14821 -8000 -15113 -10430 -11981 - -2745 -6427 -3564 -3822 -1674 -6615 -4817 -5026 -6243 -5295 -4027 -4861 -6554 - -24901 -7628 - -10299 -8153 -3359 -5982 -5207 -4491 -5267 -5364 - -7962 -12190 -1998 -10722 -2890 - -27425 -19199 - -5347 -3738 -2833 -12747 -6505 -3476 - -2360 -6688 -11640 -13899 - -5152 -4272 -7284 -3491 -4225 -3271 -7751 -6376 -2695 - -8227 -7171 -3366 -1663 -4466 -2444 -7239 -3673 -5321 -6363 - -6362 -4237 -7358 -1723 -7514 -5741 -2621 -4413 -5502 -5875 - -13451 -12610 -8672 -2841 - -1956 -3310 -3011 -2938 -5046 -4571 -3326 -2013 -5980 -5145 -3226 -5073 -3676 -2763 -4542 - -4200 -9203 -6238 -9501 -3972 -6776 -2730 -6126 - -13151 -2622 -2592 -10013 -10227 -4677 - -3151 -2107 -7564 -3219 -1353 -7924 -7287 -3273 -2117 -4211 - -6914 -1354 -3517 -1835 -1694 -4044 -2569 -4755 -6720 -1104 - -10704 -2576 -2773 -9002 -3321 -9443 -8346 -9054 - -4584 -2075 -3303 -2156 -1250 -4717 -1391 -2977 -3845 -1433 -3112 -5675 -6058 -1451 -5500 - -8712 -8235 -2732 -5337 -11076 -9434 -1593 - -27831 -3385 - -1497 -7378 -3442 -1957 -2620 -2208 -3808 -1793 -1306 -6721 -4098 -5050 - -3197 -1377 -2289 -7534 -8484 -5831 -3671 -2524 -6756 - -24827 -5119 - -1701 -5156 -3625 -2469 -5728 -5698 -4538 -1505 -1475 -3934 -3758 -5405 -1549 -5019 -1433 - -12606 -14593 -14761 -12375 - -9284 -16208 -6022 -5550 - -8956 -1473 -10077 -2220 -7314 -3561 -6013 - -1064 -1538 -3292 -3854 -3882 -6008 -5364 -4326 -1958 -4712 -3389 -4496 -5501 -2181 -1666 - -2424 -5342 -11963 -1108 -6698 -7440 -4334 - -7167 -3677 -4923 -9204 -4469 -5934 -6071 -8355 - -4457 -2779 -5014 -6156 -7431 -1879 -2349 -4038 -7353 -1453 -6980 -1890 - -1348 -8892 -13667 -2877 -9049 -8967 - -7904 -6871 -7301 -7952 -5953 -7562 -3289 -6654 - -13903 -9705 -11858 -7619 -12963 -5629 - -31307 -5533 - -1431 -5521 -3430 -4972 -4077 -1771 -2134 -2614 -1464 -1882 -1471 -2024 -4789 -4419 - -8927 -9768 -1070 -12640 -3597 -5034 - -4369 -5821 -4181 -2802 -6503 -2530 -1530 -1047 -3537 -2732 -5169 -4156 -4348 -1831 - -9491 -6837 -3855 -2320 -1689 -3393 -6974 -5192 -9255 - -2791 -3416 -2183 -2919 -3732 -3010 -5213 -7927 -4855 -4468 - -7089 -36535 - -9669 -2139 -10069 -7918 -9942 -1446 - -4381 -3053 -3216 -4395 -2710 -3329 -2837 -1395 -3310 -1598 -1620 -6310 -3405 -4005 - -3639 -1485 -5221 -5767 -2415 -5401 -4011 -3377 -2977 -6529 -1921 -5012 -4426 - -4202 -17425 - -1350 -1077 -4747 -1735 -4362 -6110 -5006 -8519 -7785 - -10393 -3532 -4113 -8856 -11626 -7552 -11220 - -8925 -8081 -2340 -2296 -9558 -6452 -3604 -8601 -1958 - -4519 -2675 -1343 -4853 -5372 -2362 -4274 -4636 -3144 -5231 -4867 -5533 -1505 -5978 -1649 - -4955 -6133 -6469 -5120 -4257 -3936 -3661 -4995 -6040 -2616 -5863 -6886 -1653 - -4106 -1467 -2641 -1772 -4588 -1750 -1333 -4312 -4852 -1508 -5620 -4535 -3888 -4007 -2194 - -27508 - -10203 -6474 -2054 -11285 -12800 - -10249 -7004 -6396 -1990 -5883 -9275 -4687 - -22359 -8260 -9536 - -2657 -6895 -4538 -4635 -1259 -1819 -2679 -3703 -6127 -4197 -4009 -4652 -2708 - -49278 - -16243 -33427 - -5219 -3052 -4510 -9946 -5429 -5163 -2653 - -4676 -5247 -6267 -2648 -1257 -2335 -3737 -1443 -2726 -2361 -2134 -1952 -1021 -1753 - -4671 -7281 -8217 -6170 -1182 -8778 -5289 -5035 - -6067 -3461 -7448 -2117 -8702 -2849 -9659 -1410 -9402 - -10607 -5652 -3127 -5594 -2423 -2591 - -2138 -4007 -6383 -5597 -3074 -5811 -2178 -6220 -2212 -4271 -5410 -6677 - -5313 -5507 -7753 -5492 -5041 -4967 -7644 -10538 - -2062 -7568 -1439 -1621 -8216 -4952 -4358 -3391 -4776 - -4015 -4854 -2935 -5177 -2131 -5192 -3300 -3337 -5223 -6469 -6101 -3917 -3492 -3986 - -8942 -9447 -6152 -2764 -6196 -3116 -6478 -9334 -9346 - -10560 -5894 -12105 -4239 -4573 - -1752 -6751 -3684 -2236 -6195 -11108 -5450 - -32451 -29152 - -13915 -7001 -11778 -2626 -3026 -12725 - -6410 -4265 -10923 -9587 -7411 - -4943 -5272 -2453 -7324 -3815 -6049 -2936 -5905 -3187 -3675 -3860 -7143 - -58413 - -6544 -11733 -11746 -3288 -5411 -5555 -3796 - -4852 -6567 -1494 -4644 -6183 -2444 -5145 -1015 -5088 -7905 -6491 - -3550 -5679 -4312 -2128 -2262 -3597 -2249 -2472 -4758 -3927 -5369 -2278 - -1399 -3791 -4817 -13948 -10037 -6154 - -7877 -16900 -10571 -18965 - -4836 -5457 -6380 -4241 -4969 -3635 -4160 -5451 -6164 -5334 - -4961 -2514 -1620 -2494 -6373 -4040 -7544 -2595 -2330 -6927 -7906 - -8023 -6672 -3565 -9038 -7154 -5236 - -4297 -3122 -4779 -3937 -3165 -5012 -1298 -5405 -6175 -3862 -3469 -3533 -5411 -6349 - -36291 -32851 - -7992 -4095 -4841 -6728 -2275 -1549 -8143 -8494 -7144 -5800 - -3064 -1314 -4224 -5969 -2913 -2622 -4833 -3113 -3663 -5351 -5102 -2930 -6048 -5658 -4773 - -1771 -9851 -9844 -4001 -1343 -6124 -3826 -7647 - -8488 -7700 -19028 -2822 - -4541 -6311 -6499 -1043 -5888 -2631 -3824 -3137 -6957 -1372 -1755 -5852 -4944 - -7010 -7705 -7380 -5693 -6466 -2388 -4584 -1309 -5295 -4232 - -8997 -11222 -12715 -13341 - -3389 -5375 -6730 -1723 -4179 -6599 -8482 -9599 -8903 - -1774 -6964 -3739 -6345 -4881 -5381 -2415 -7900 -8778 - -10638 -20181 -4651 - -11271 -3243 -11634 -2919 -8121 -9706 -7354 - -2675 -2809 -5554 -4439 -1626 -4173 -4273 -2551 -2302 -4167 -1929 - -2641 -1264 -2074 -8265 -1089 -5010 -2591 -5610 -4610 - -8082 -11994 -3820 -2770 -9252 -3948 -7731 - -9429 -7117 -13052 -8925 -1844 -11783 - -1288 -5874 -3708 -4770 -6241 -1823 -2081 -4040 -1675 -3309 - -6185 -5449 -1262 -4549 -5293 -4790 -1854 -4853 -1727 -5514 -5256 -4148 -5514 - -6609 -15270 -13973 -10316 - -8083 -8381 -4788 -1606 -5118 -1520 -8152 -2433 -2999 -1784 - -1178 -5284 -8781 -5156 -6160 -1957 -3163 -5129 - -6123 -8854 -2776 -8899 -1728 -1459 -6248 -1676 -6804 - -11240 -11672 -1993 -12007 - -11441 -8463 -3348 -3292 -6021 - -3765 -7412 -2551 -3571 -2806 -3018 -7255 -4727 -1812 -5666 - -1111 -7513 -4547 -8423 -6838 -8520 -5818 -7891 -7659 -1029 - -21630 -17117 - -4790 -2925 -1959 -7089 -5283 -6020 -2522 -2052 -1519 -1591 - -6012 -10136 -10443 -7841 -6019 -1279 -3540 -9068 - -3937 -12491 -9763 -7498 -1701 - -11876 -9043 -4713 -2987 -8774 -11370 - -4885 -5614 -2665 -7454 -1350 -1832 -8687 -9477 - -10654 -8624 -6594 -13129 -10246 - -25357 -10959 -23864 - -2554 -4768 -6464 -2757 -1927 -1861 -2175 -2322 -4198 -4037 -4752 -2082 -6003 -5328 - -1820 -4090 -7653 -2160 -3455 -2144 -12128 - -29265 -30377 - -2359 -3949 -6123 -2235 -4210 -5808 -2377 -6678 -2039 -1324 -2104 -5407 - -1955 -4478 -3696 -6486 -2206 -3083 -2843 -5454 -4294 -3972 -2556 -5795 -3319 -2315 - -6188 -1383 -3880 -3153 -5842 -3400 -5504 -1353 -1257 -3639 - -5550 -5255 -4095 -3951 -3104 -2344 -4580 -3980 -1482 -2521 -2764 -1607 -5699 -2350 -1175 - -3326 -5681 -5905 -7268 -6083 -1407 -1434 -3186 -5744 -6268 -5533 -2245 - -2994 -1141 -10449 -6013 -5210 -8014 -3136 -8434 - -28983 -19936 - -4560 -8754 -6220 -12071 -5989 -2858 -6333 - -1928 -22562 - -3804 -7720 -6499 -7651 -1860 -1193 -8243 -2693 -2515 -4517 - -2762 -1303 -5390 -4371 -2424 -5039 -5875 -1354 -4039 -1883 -1398 -5544 -3698 - -1312 -5037 -2534 -3404 -3494 -5859 -7520 -3173 -4187 -5593 -4094 - -1938 -4558 -3961 -8752 -6733 -8402 -2351 -7059 - -4650 -5453 -5251 -2503 -7601 -6322 -7193 -3568 -6734 -1254 -7263 - -15442 -18712 - -2671 -34633 - -8092 -6200 -3593 -12427 -11897 -5342 - -12145 -20778 -25515 - -4318 -7326 -6324 -3726 -6176 -2530 -4017 -5504 -2930 -4978 -1941 -3893 - -7431 -2579 -2463 -5818 -2616 -7477 -8840 -2943 - -28974 -26077 - -4317 -2950 -2298 -4360 -2323 -5028 -6040 -1223 -2836 -5338 -6002 -4551 -4505 -1046 -5007 - -5979 -1142 -5901 -4646 -5486 -5184 -6255 -1473 -6420 -5358 -2502 -4997 -6331 -5529 - -3641 -1705 -3924 -3952 -3856 -4687 -4962 -3754 -2049 -5361 -5286 -4157 -5753 -2937 -1996 - -9825 -2077 -12304 -8296 - -5576 -4979 -5746 -3423 -1339 -5466 -2956 -3201 -4612 -5538 -4957 -3095 -3211 - -6162 -6797 -12282 -3848 -14760 - -8520 -6433 -5529 -5617 -4572 -2395 -3228 -6012 - -36432 -12115 - -3396 -3826 -2514 -5297 -5768 -4673 -6134 -2153 -4533 -5530 -2289 -3910 -3429 -6315 - -9288 -7564 -2801 -7672 -3580 -6425 -5047 -9141 - -6455 -4624 -7937 -6151 -9671 -2857 - -5789 -7291 -3051 -4587 -4527 -5970 -5863 - -7496 -2170 -3522 -1108 -4284 -1214 -5981 -4240 -4880 -2816 -3638 - -1458 -4890 -4046 -5337 -6192 -3705 -1362 -3330 -3593 -1036 -3842 -6485 -2170 -1176 - -4669 -7457 -3290 -1471 -1471 -4983 -8120 -3964 -2012 - -12196 -12907 -1360 -2359 -4034 -12061 - -2023 -2376 -4602 -2529 -2091 -7266 -3696 -4104 -7007 -4183 -2551 -4913 - -12264 -2297 -16633 -19219 - -5963 -5584 -1534 -6499 -5988 -1160 -5186 -4313 -4579 -2978 -6075 -5821 -3288 - -2456 -1103 -2492 -1484 -3089 -2519 -2596 -3462 -4707 -2403 -5042 -2345 -1841 -3924 -3674 - -15955 -14482 -19975 -7828 - -7686 -33030 - -9367 -6387 -4450 -1301 -6652 - -2436 -8020 -9634 -1189 - -13768 -4937 -6445 -2333 -8688 -2282 - -2632 -2386 -1540 -1313 -5560 -3191 -3768 -6455 -1771 -5707 -6503 -3702 -2690 -6410 - -4254 -9381 -10720 -6622 -4502 -3229 - -10702 -25975 -21218 - -1824 -3787 -1017 -3211 -1954 -3263 -1654 -5116 -5383 -6081 -5917 -3708 -3770 -3332 -1564 - -8659 - -1918 -13752 -13443 -2032 -8928 - -8167 -4650 -4066 -8487 -5484 -2973 -1974 -8716 -3918 -6829 - -8569 -4604 -3930 -4567 -15587 - -8510 -8686 -2757 -10057 -2681 -7895 -6610 -10350 - -27009 - -3554 -8125 -6661 -1517 -1293 -6747 -3910 -4998 -3100 - -58602 - -2960 -5646 -4133 -3192 -5660 -3224 -4699 -6106 -4147 -4855 -1950 -1195 -5861 -3613 -5095 - -2481 -11509 - -9922 -2887 -1722 -10604 -6329 -6330 -3934 -5424 - -7492 -6265 -3838 -8041 -6266 -4794 -2524 -6684 -2734 -7338 - -6263 -8780 -6447 -20087 - -6388 -9789 -4219 -6199 -1753 -7765 -2130 -5475 - -6043 -4380 -7928 -3807 -5877 -1736 -6191 -4348 -5699 -2381 - -2683 -4364 -6323 -2128 -3828 -1657 -3885 -3426 -6137 -4427 -2592 -6245 -6142 -5680 - -4812 -8631 -7556 -6549 -4494 -7671 -2664 -3702 -3551 -1289 - -8546 - -5793 -8055 -4733 -3781 -4359 -1127 -5052 -7333 -1533 -3232 -6713 - -9850 - -6386 -8256 -12527 -10704 -11625 -6314 - -36312 -9909 - -2500 -5131 -12716 -2449 -10252 -2989 - -10080 -7372 -4650 -4148 -1543 -7025 -4075 -5975 - -6493 -1969 -3498 -5752 -5231 -5688 -3805 -2245 -3355 -7015 -2001 -1980 - -5498 -10487 -6072 -5136 -4464 -1645 - -5765 -1637 -4963 -3317 -2151 -4765 -4234 -4268 -3791 -1371 -5906 -5800 -4684 -5872 -1032 - -7693 -5165 -3321 -7593 -6652 -4856 -7244 -3238 -5442 -6728 - -8940 -2746 -4620 -4575 -1794 -8580 -6018 -1198 -2470 - -10302 -5070 -4341 -2533 -4345 -11497 - -11333 -1604 -6233 -6784 -5614 -10283 -5386 - -2715 -3782 -4739 -5782 -3541 -3544 -3591 -4748 -7392 -3361 -5764 -6413 - -9117 -1201 -6914 -1214 -3645 -3711 -1825 -10249 - -4719 -8388 -1460 -4555 -1038 -8967 -2147 -2943 - -3372 -3381 -3607 -5180 -2115 -1071 -2218 -5102 -3133 -5809 -3920 -2758 -1729 -2132 - -1332 -6802 -5791 -3281 -6624 -1692 -5105 -5160 -3082 -6840 -1613 -4749 - -5211 -2825 -6050 -2913 -2542 -2466 -2411 -2101 -5822 -1972 -3409 -2738 -5032 -5715 - -8421 -5749 -1746 -1424 -4398 -5048 -1450 -2122 -7937 -4488 - -17962 - -1415 -5018 -11466 -17007 - -8818 -9115 -4789 -1919 -8398 -3807 - -13697 -10141 -5675 -2146 -1954 -6312 - -8363 -2872 -1505 -7354 -1868 -3313 -6657 -3468 -7434 - -2157 -2904 -3745 -6707 -4194 -2956 -5377 -3130 -7664 -7595 -7477 - -22149 - -5662 -4865 -5971 -6008 -6761 -5764 -4321 -1546 -1705 -6056 -3990 -3953 - -7794 -1246 -5418 -2460 -7858 -6992 -5897 -3459 -2915 -2227 -1517 - -7873 -3664 -6050 -9000 -8922 -8817 -4514 - -20975 - -4983 -11133 -4400 -6751 -2763 -2781 -11806 diff --git a/2022/day2/day2_part1.py b/2022/day2/day2_part1.py deleted file mode 100644 index 60ebfd4..0000000 --- a/2022/day2/day2_part1.py +++ /dev/null @@ -1,27 +0,0 @@ -with open('input.txt', 'r') as f: - # Part 1 - matches = [rpsMatch.split(' ') for rpsMatch in f.read().split('\n')] - score = 0 - for rpsMatch in matches: - if rpsMatch[0] == 'A': - if rpsMatch[1] == 'X': - score += 1 + 3 - elif rpsMatch[1] == 'Y': - score += 2 + 6 - elif rpsMatch[1] == 'Z': - score += 3 - elif rpsMatch[0] == 'B': - if rpsMatch[1] == 'X': - score += 1 - elif rpsMatch[1] == 'Y': - score += 2 + 3 - elif rpsMatch[1] == 'Z': - score += 3 + 6 - elif rpsMatch[0] == 'C': - if rpsMatch[1] == 'X': - score += 1 + 6 - elif rpsMatch[1] == 'Y': - score += 2 - elif rpsMatch[1] == 'Z': - score += 3 + 3 - print(f"Total score: {score}") diff --git a/2022/day2/day2_part2.py b/2022/day2/day2_part2.py deleted file mode 100644 index 6cf3eec..0000000 --- a/2022/day2/day2_part2.py +++ /dev/null @@ -1,27 +0,0 @@ -with open('input.txt', 'r') as f: - # Part 2 - matches = [rpsMatch.split(' ') for rpsMatch in f.read().split('\n')] - score = 0 - for rpsMatch in matches: - if rpsMatch[0] == 'A': - if rpsMatch[1] == 'X': - score += 3 - elif rpsMatch[1] == 'Y': - score += 1 + 3 - elif rpsMatch[1] == 'Z': - score += 2 + 6 - elif rpsMatch[0] == 'B': - if rpsMatch[1] == 'X': - score += 1 - elif rpsMatch[1] == 'Y': - score += 2 + 3 - elif rpsMatch[1] == 'Z': - score += 3 + 6 - elif rpsMatch[0] == 'C': - if rpsMatch[1] == 'X': - score += 2 - elif rpsMatch[1] == 'Y': - score += 3 + 3 - elif rpsMatch[1] == 'Z': - score += 1 + 6 - print(f"Total score: {score}") diff --git a/2022/day2/input.txt b/2022/day2/input.txt deleted file mode 100644 index f08e848..0000000 --- a/2022/day2/input.txt +++ /dev/null @@ -1,2501 +0,0 @@ -B Y -A Z -C Z -A Y -A Y -B Y -C Y -A Y -B Y -B Y -A Y -B Z -B Y -A Y -C Y -B X -B Y -B Y -B Y -C Y -B Y -A Y -B Y -A Y -B Y -C Y -A Y -B X -B Y -B Y -B X -B Y -C Y -B Y -C Z -A X -B Y -B Y -A Z -B X -C Y -C Z -B Y -B Y -A Y -B X -B Y -B Y -B X -B Y -C Y -A Y -B Y -C Y -C X -B X -B X -A Z -C Y -B Y -C Z -B X -B Y -B Y -B X -B Y -B Z -B Y -B Y -B X -B Y -B X -C X -B Y -B X -A Y -B Y -B X -B Y -A Y -B X -B X -B Y -A Y -B Y -B Y -B Y -C Z -B X -B Y -B X -B X -B Y -B X -C Z -B Y -B Y -B Y -B Y -B Y -B X -A Y -B Y -C Y -C Z -A Y -B Y -A Y -C Z -B Y -B X -B Y -C X -A Y -B X -B Y -B X -B X -B X -A Y -C Z -B Y -A Y -B X -A Y -B Y -A Y -B X -B Y -B Y -B Y -B X -B X -C Z -B Z -B Y -B X -C Y -C Y -C Z -C X -C Y -B Y -B X -A Y -A Y -B X -C Z -B X -C X -B X -B Y -B Y -A Z -B Z -C Y -C Y -B Y -B Y -C Y -C Y -C Z -B Y -B X -B Y -B Y -C Y -B Y -B Y -B Y -B Y -B Y -C Y -A Z -B X -B Y -C Z -B Y -C Y -B Y -B X -C Y -B Y -B X -C Y -B Y -B Y -B Y -A Y -B X -B X -B Y -B Y -B X -C Z -B Y -A Y -A Y -B X -C X -A Y -B X -B X -B Y -B Y -A Y -C Y -C Z -C Y -B Y -B Y -A Y -A Y -A Y -B Y -B Y -A X -B Y -B Y -B X -B X -C Z -B X -B X -A Y -A Y -A Y -B Y -B Y -C Y -B X -A Y -B Y -C Z -B X -A Y -C Z -A Y -B X -C Y -B Y -B Y -C Y -B X -B X -B Y -B Y -B Y -B Y -A Y -B X -B X -B Y -A Y -B Z -A Y -B Y -C Y -B Y -B Y -B X -C Z -B Y -B Y -B X -B X -C Z -B Y -A Y -B Y -B X -C Y -A Z -C Z -B Y -B Y -B X -C Y -C X -B X -C Y -C Z -B X -B Y -B Y -C Z -B X -C X -A Z -A Y -B X -C X -B Y -A Z -A Z -A Y -B X -A Y -B Y -B Y -C Z -B X -A Z -B Y -B X -A Y -B Y -C Y -B Y -B X -B X -A Z -B Y -B Y -C Z -B X -B X -B Y -C Z -B X -B X -C Z -B X -A Y -B X -C Z -A Y -C X -B Y -B X -B Y -B Y -C Y -B X -A Z -A Y -B X -A Z -B X -B Y -B Y -A Z -C X -B Y -B Y -B Y -A Z -B Y -B X -C Y -C Z -B X -B Y -B Y -B Y -C Y -A Z -B Y -C Z -C X -B Y -C Y -B Y -B X -B Y -B Y -A Y -B Y -B Y -C Z -A Z -B X -C Y -B Y -B Y -B Y -A Y -A Y -B Y -A Y -B Y -A Y -B X -C Y -B Y -C X -A X -B X -A Y -C Y -B Y -A X -B X -A Z -B X -B Y -B Y -B X -B Y -B Y -B X -A Y -A Z -C Z -B Y -B Y -B X -C Z -C Z -B Y -A Y -B X -C Z -A Y -B X -B Z -B Y -B Y -B Y -B X -B Y -B X -B X -B Y -C Y -B Y -B Y -B Y -B Y -B Y -C Z -B X -B Y -B Y -B Y -B X -B X -C Y -B X -B X -C Z -B Y -B Y -B Y -B Y -B Y -C Y -B Y -B Y -B Y -B X -B Y -B X -B Y -B Y -C X -B Y -C X -B X -C Z -C X -B Y -A Y -A Z -A Y -C Y -B X -B Y -B Y -C Z -A Z -B Y -B Y -B Y -B Y -B Y -B Y -B Y -C Y -B Y -C Y -C X -B X -B X -C Z -A X -B X -B Y -A Y -B X -B Y -A Z -B Y -C Y -B X -B Y -B Y -C Y -C Y -B Y -B X -B X -B Y -B Y -B Y -B Y -C Z -B X -B Y -B Y -B X -B Y -B X -B X -B Y -B X -B Y -B Y -C Y -B X -B Y -B Y -B Y -A Y -B Y -A Z -B Y -C Y -C Y -B Y -B X -A X -B Y -A Y -B X -B Y -B Y -B X -C Y -C Z -B X -B Y -A Y -C Y -A Z -C Y -B Y -B Y -B Y -B X -C Y -B Y -B Y -A Y -A X -B Y -B X -B Y -B Y -A Y -B X -C X -B Y -A Y -C Y -B Y -B Y -A Y -C Y -A Y -C Y -B Y -B X -C Y -C Y -B Y -B Y -A Y -B Y -B Y -B Y -C Z -B X -B Y -B X -B X -A X -A Y -B Y -B X -A Z -B X -A Y -B Y -C Y -C Y -C Y -B Y -A Y -A Y -B Y -B Y -B Z -B Y -B X -A Y -B X -A Z -B Y -B Y -B X -B Y -C Y -A Z -B Y -C X -C Y -B Y -B Y -C X -B Y -A Y -A Y -C Z -B X -B X -B X -B X -B Y -C Z -B X -C Y -A Y -B Y -A Y -B Y -A Y -B Y -B Y -C Y -B Y -B Y -B X -B Y -B X -B Y -B X -B Y -A Z -C X -B X -C X -B X -A Y -C Y -B X -C Y -B X -B X -C Z -C Y -B X -B X -B X -B Y -C Y -B X -B X -A Z -B Y -B Y -C Y -B X -C Z -C Y -A Y -B X -C Y -C X -B Y -B Y -A X -B Y -B X -B Y -B X -C Y -B X -A Y -B Y -B X -B Y -B Y -B Y -C Y -C Y -C Y -C Y -B X -B Y -A Z -B X -B X -B Y -B Y -C Z -B Y -B X -B Y -B X -C Y -B Y -C Z -A X -B X -B Y -C Y -C X -B X -B X -B Y -B Y -B Y -B X -B Y -B Y -B X -C Z -B Y -B Y -B X -B X -B Y -B X -C Z -A Z -C X -C X -B Y -B X -A Y -B Y -B X -C Z -A X -B X -B Y -B X -B X -B Y -B Y -A Z -B X -A Y -A Y -B Y -B X -B Y -C Y -A Y -A Y -B X -B Z -C Y -C Y -B Y -C X -B X -C Z -C Z -B Y -C X -A Y -B Y -B X -A Y -B Y -C X -B Y -B X -B Y -C Z -A X -A Z -B Y -B Y -B X -B X -A Y -B Y -B X -B Y -C Y -B Y -B X -C Z -C X -C Y -A Y -B Y -A Y -B Y -B Y -B X -B X -A Y -A Y -B Y -B Y -B Y -A Y -B Y -B Y -B Y -C Z -A Z -C Y -B Y -B X -C Y -A Z -B X -B Y -A Z -C Y -B Y -B X -B Y -B Y -A Y -B X -B Z -B X -B X -B X -B X -B Y -B Y -B X -B Y -C Y -C X -C Z -B Y -B Y -C Y -A Y -B X -B X -B Y -B X -B Y -B Y -A Y -B Y -B Y -B Y -B Y -A Y -B X -C Z -B Y -B Y -B Y -B X -B Y -C Y -B X -B X -A Y -A X -A Y -C X -C Y -B Y -B Y -C Y -B X -B Y -B Y -C Y -B X -C X -B X -C Y -B Y -B X -B X -B Y -C X -B X -B Y -B X -B X -B Y -B X -B Y -B Y -B Y -C Y -B Y -B Y -C Z -B Y -B X -C Y -B Y -B Y -B X -B Y -A Y -B Y -A Y -B Y -B Y -A Z -B X -B Y -B Y -C Z -B X -B X -B Y -B Y -B Y -B X -C Y -C Y -B X -B Z -A X -B Z -C Y -B X -B X -A X -B Y -B X -C Z -C Y -B X -B Y -B Y -B Y -C Z -B Y -C Y -C Y -A Y -B X -B Y -B Y -B Y -A X -B Y -B Y -B X -B X -A Y -B X -B Y -A Z -B Y -C Z -B X -B Y -B Y -A Y -A Y -B Y -B Y -B Y -B Y -C Y -C Z -B X -B X -B Y -B Y -B X -B X -A X -A Y -B Y -B Y -B X -B Y -A Y -B Z -B X -C Z -B Y -B X -B X -B Y -B Y -B Y -C Y -C X -B X -C Z -B Z -B X -B X -C Z -C Y -B X -A Z -C Y -A Y -B X -B Y -C Z -B Y -B Y -B X -B Y -C Z -B Y -A Y -B X -B X -B X -C Y -B X -B Y -B X -B Y -B Y -A X -C Y -A Y -C Y -B X -B Y -B X -B X -B Y -B Y -B Y -B Y -B Y -B Z -B Y -A X -C Z -B X -A Y -C Z -B Y -C X -A Y -C Y -C X -B Y -B X -B X -C Z -C Y -A Z -C Y -A Y -B Z -A Y -B X -C X -A Z -C X -B Y -C X -B Y -A Y -A X -B X -B Y -B X -B X -B X -A Y -B Y -B X -B Y -A X -B Y -C X -B Y -B X -B Y -A Y -B X -B Y -B X -B Y -B X -B Y -B Y -A Z -A X -B Y -C Z -B Y -B Y -B Y -B Y -C Y -B Y -A Y -A Y -C Z -C Y -B Y -A Y -B Y -B X -A Y -C Y -B Y -B Y -A Y -B Y -A X -C X -B Y -B Y -C X -B Y -B X -A X -B Y -B Y -B Y -B X -B X -A Z -B Y -A X -B X -A Z -B X -C Z -B Y -B Y -B Y -B X -B Y -B Y -C Y -B Y -B X -A Y -C Z -B Y -B X -A Y -C Y -B X -B Y -B Y -C Z -A Y -B X -B Y -B X -B X -C X -B Z -C Y -B Y -B Y -B X -B Y -C Y -C Y -C Y -B Y -A Y -C Z -B Y -C X -C Y -B Y -B Y -A Z -B X -A Y -A Y -A Z -B X -A Y -C Z -B Y -B Y -A X -B X -B Y -C Z -B Y -B Y -B X -B Y -B X -B X -A X -C Y -C Y -C Y -B Y -B Y -C Z -B Y -B X -C X -B Y -C Z -B X -B Y -B Y -B Y -B X -B Y -B X -B X -B Y -B Y -B Y -B Y -B X -B Y -B Y -C Z -B X -B Y -C Y -B X -B Z -B Y -C Z -C Y -B Y -A Z -A Y -B X -B Y -C Y -A X -A Y -B X -B Y -C Z -B Y -C X -A Y -C Y -B Y -B X -B Y -B Y -B Y -B X -B Y -C X -A Z -B X -C Y -A Y -B X -B Y -B X -B Y -C X -A Y -A Y -C Z -B Y -C Y -B Y -B Y -B Y -B Y -B Y -C Y -A Y -B Y -B X -C Y -B Y -B Y -A Z -B Y -B Y -B X -B Y -B Y -B X -A Y -A Z -B X -B X -C Y -B Y -B X -C Y -B Y -A X -B X -B Y -A Z -B Y -B Y -B Y -B Y -B X -A X -B X -C Y -B Y -B Y -B X -C Y -B Y -B X -B Y -B X -A X -B Y -A Y -B X -C X -B Y -C Z -B Y -B Y -C Y -B Y -C X -B Y -B X -A Z -B Y -B X -B Y -A Y -B Y -B X -B X -B X -B Y -B Y -B Y -A Y -C X -B X -B X -C Z -B Y -A Y -A Z -A Y -B Y -B Y -B X -C X -C Y -C Z -B Y -B Y -B Y -B Y -B Y -B X -C Y -B Y -B Y -B X -B X -B Y -B Y -A Y -A Y -A Y -B X -B X -C Y -B Y -A Z -B X -C Y -B Y -B X -B Y -B Y -A Y -A Y -B Y -B Y -B X -B X -A Y -A X -A Z -C X -A Z -B X -B Y -C Y -A X -B X -C Z -B Y -C Y -A Y -C X -B Y -C X -A Y -B Y -B X -B Y -A X -B X -B X -B Y -B Y -B Y -B X -B Y -B X -B Y -A X -B Y -B X -B Y -B Y -B Y -B X -B X -A Y -B Y -A Z -B Y -B X -C Z -B X -B Y -B Y -B Y -B X -C Y -B Y -B Y -A Y -B X -B X -B Y -B Y -A Y -B Y -B X -B Y -B X -B Y -C X -C Y -B X -B X -B X -C Z -B Y -B Y -B X -B X -B Y -A Y -B Y -C X -A Y -B Y -B Y -C X -B X -A Y -C X -B Y -B X -C Z -B X -B Y -A Y -B Y -B X -C Y -A Y -B Y -A X -B Y -C Y -C X -B Y -B X -A Z -B Y -B Y -B X -B Y -B Y -B X -B Y -C Y -B X -B Y -B X -B X -C Y -B X -B X -A Y -B X -B Y -B Y -B Y -B Y -B Y -B Y -B Y -C X -B X -B X -A Y -B Y -A Y -B X -B Y -A Y -B Y -A Z -B X -A Y -C Z -A Y -A Z -B X -B Y -A Y -B X -B X -B Y -B Y -A Z -A Y -B X -C Y -B Y -B Z -C X -C X -B X -A Y -B X -B Y -B Y -A X -B Y -A X -B Y -A Y -B X -B X -A Z -A Y -A Y -C Z -B Y -B Y -C Z -B Y -B X -C Y -B Y -B X -A Y -B Y -B X -C X -C X -B Y -A Y -B Y -B Y -B Y -B X -A Y -B Y -B Y -A Y -B Y -B X -B X -C Y -C X -B Y -C X -B Y -C Y -B X -B Y -B X -B Y -B Y -B X -B Y -B Y -C Y -B X -B Y -B X -B Y -A Y -B X -A Y -B X -B Y -B X -C X -C Y -B Y -B X -B Y -B Y -B X -B Y -B Y -A Y -B Y -B X -B Y -B X -C Y -A Y -B Y -B X -B Z -B Y -B X -C Y -B Y -C Y -C Y -B X -C Z -B X -C Y -B Y -A Y -B Y -A X -B Y -B Y -B Y -B Y -A Z -B Y -B Y -A Y -C Y -B Y -B X -B Y -B X -B Y -B Z -B X -B X -B Y -B Y -B Y -B X -B Y -B X -B Y -B Y -A Y -C Z -B Y -B Y -B X -B X -B X -B Y -A Y -A Y -B X -B Y -B X -A X -B Y -B Y -C Y -A Y -C Z -A Z -A Y -B Y -B Y -B Y -B Y -B Y -C X -B Y -A Y -C X -C Y -B X -A Z -C Z -A Z -C Y -B X -B Y -B Y -B X -B Y -A Z -C Z -C X -B X -B Z -A Y -C Y -C Y -C Y -A Y -C X -B X -C Y -C Y -B Y -B Y -A Y -B Y -A Y -A Y -B X -B X -C Y -B Y -C Y -B Y -B Z -B Y -A Y -B X -B Y -A X -B X -B Y -B Y -C Y -B Y -C Z -B Z -A Y -A Y -A Y -B Y -B X -B Y -A Y -C X -B X -B Y -B X -C X -B Y -B X -B Y -B Y -B X -A Y -A Y -B Y -B Y -B Y -A Z -B Y -B Y -B Y -B Y -B Y -B X -B Y -B Y -B Y -B Y -B Y -B X -B X -B X -A X -C Y -C X -C Z -C Y -B X -B Y -A Z -B Y -C Y -B Y -B X -B Y -A Y -B X -B X -B X -C Y -B Y -B Y -B Y -B X -B Y -B Y -B Y -B Y -B Y -B Y -C X -B Y -A X -B X -C Z -B X -B Y -B X -B Y -C Y -B Y -B Y -B X -A Z -B Y -A X -B Y -C Z -C Y -B Y -B Y -B Y -C X -B Y -B Y -B X -A Y -C Z -B Y -B X -B Y -B Y -B Y -B X -B Y -B Y -B Y -C X -B X -B X -C Z -B Y -B Y -B X -A Z -B Y -B Y -C Y -C Y -A Y -C Y -A Y -B Y -B X -B Y -B X -C Y -B Y -B Y -B Y -B Y -B Y -C X -B X -B X -B Y -C X -C Z -B X -A Y -C Z -B X -B X -C Y -C Y -A Y -B Y -B X -B Y -B Y -A Z -A Z -B Y -B Y -B Y -B Y -B Y -B Y -B Y -B X -B Y -C Y -B Y -B X -A X -B Y -A Y -A Y -B Y -B Y -B X -B Y -B Y -C Y -A Y -B X -B X -B X -B Y -B Y -B Y -B Y -B X -B X -A Y -B X -B X -B X -B X -B Y -B X -A X -C Y -B Y -B Y -A Y -B Y -B X -C X -C Y -A Y -B Y -A Z -C Y -B Y -B Y -B Y -B X -B X -B Y -C X -B X -B Y -C X -B X -A Y -B Y -B X -B Y -B Y -B X -B Y -B Y -C Y -B X -B X -B X -A Y -B Y -B X -C Y -C Y -B X -A Y -B Y -C Y -B X -B Y -B X -B X -B Y -C Y -A Y -C Y -B X -C X -B Y -B X -A Y -C Y -B Y -B Y -B Y -C Z -C Y -A Z -A Y -B Y -B Y -B Y -B Y -A Y -B X -B Y -B Y -C Y -C X -B Y -B Y -B Y -B Y -B X -B X -B X -C Z -B Y -B Y -C Y -B X -B Y -B Y -A Z -B Y -C Z -B X -A Y -B X -B Y -A Y -A Z -A Z -B Z -B Y -B Y -A Y -C Z -B Y -C Z -B X -B Y -B Y -B Y -B Y -C Y -B X -B X -B X -B X -B X -B Y -A Z -A Y -B Y -B Y -B Y -C X -B Y -A Y -B Y -B Y -B X -B Y -C Y -A Z -A Y -C Y -C Z -B X -A Z -B X -B X -B Z -B Y -C Y -A Y -B Y -B Y -B X -C Z -B Y -B Y -A Z -A X -B Y -B X -B Y -B X -B X -B X -B X -A Y -B Y -A X -B X -B X -B Y -B X -B Y -B Y -A Y -B Y -C Y -A Z -A Y -B X -B Y -A Y -C X -B Y -C Y -B X -B Y -A Y -B Y -A Z -B Y -B Y -A Y -B X -C Y -B Y -B Y -C Z -B X -B Z -B Y -A Y -B Y -C X -B Y -B Y -B Y -B Y -B Y -C Z -C Z -B Y -C Y -C Z -A X -B Y -A Y -B X -B X -B Z -B X -A Y -B Y -B Y -B Y -A Z -C Y -B Y -B Y -C Y -C Z -C X -B Y -A X -B Y -A Y -C X -B Y -B Y -B Y -B Z -B X -B X -C Y -B X -B X -C Z -B Y -B X -B X -B Y -B Y -B X -C X -B Y -B Y -B X -A Y -B Y -C Y -B Y -A X -B Y -A Y -A Y -B Y -B X -B X -C X -B Y -B X -A Y -C X -A Y -B X -B Y -B Y -C Z -B X -B Y -B X -B Y -B Y -A Z -B Z -B Y -B Y -C Y -C X -C Y -C Y -B Y -B Y -B Y -C Y -A Z -A Z -B Y -B X -A Y -B X -B Y -A Y -B X -B Y -B X -C X -B Y -B Y -B X -B X -A Z -A Y -B Y -A Y -B Y -B X -B X -A Y -B X -B Y -B Y -B X -C X -C X -B Y -B Y -A Y -B X -B Y -B Y -B Y -B Y -C Y -B Y -C Z -B Y -B Y -C X -B X -B Y -B Y -B X -B X -B Y -B Y -B Y -B X -A Z -B Y -B X -C Z -B X -B Y -A Z -C Z -A Z -B X -B Y -B Y -B Y -B X -B Y -C Y -C X -C Y -A X -B Y -B Z -B Y -B Y -B Y -A Y -B X -B Y -C Y -B Y -B X -B X -B Y -B Y -B Y -C Z -B Y -B X -B Z -B X -B Y -B Y -B X -B X -A Y -B X -B X -B X -A Y -B X -B X -B Y -B X -A X -B Y -B Y -C Y -B X -B Y -B X -B X -C Y -B Y -B Y -B X -A X -C Y -C X -A Y -B X -B Y -B Y -B Y -B Y -B X -B Y -B Y -B Y -B Y -C Y -C Z -B Y -C X -B X -B Y -A Z -C X -B X -B Y -B Y -B X -B Y -B Y -B Y -B Y -B Y -B Y -B Y -C Y -B Y -C Y -B X -A Z -B Y -B X -A Y -B Y -B X -A Y -B X -B X -B X -B Y -B Y -B X -B Y -A Z -B Y -B Y -B Y -B Y -B Y -B Y -B Y -B Y -B X -B Y -B Y -A Y -B Y -B X -B X -C Y -C X -B Y -A Y -C Z -B X -B X -B Y -C Y -A Y -B Y -B Y -B X -B Y -B X -C Y -C Y -B Y -B X -B X -B Y -C Y -B Y -C Y -B Y -B Y -C Y -A Y -B Y -A Z -C X -B Y -B Y -B X -B X -C Z -B Y -B Y -B Y -B X -B X -A X -B X -B Z -B Y -B X -B X -B Y -B X -B X -B Y -B Y -B Y -B Y -A Y -B Y -B X -B Z -B Y -A X -A X -A Y -B Y -B Y -C Y -A Y -C Y -B Y -B X -B Y -B Y -B X -B Y -A Y -B Y -B Y -B X -B Y -A Y -B X -B Y - diff --git a/2022/day3/.idea/.idea.Day3/.idea/.gitignore b/2022/day3/.idea/.idea.Day3/.idea/.gitignore deleted file mode 100644 index 58f8579..0000000 --- a/2022/day3/.idea/.idea.Day3/.idea/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml -# Rider ignored files -/modules.xml -/projectSettingsUpdater.xml -/contentModel.xml -/.idea.Day3.iml -# Editor-based HTTP Client requests -/httpRequests/ -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml diff --git a/2022/day3/.idea/.idea.Day3/.idea/.name b/2022/day3/.idea/.idea.Day3/.idea/.name deleted file mode 100644 index 4f20f2a..0000000 --- a/2022/day3/.idea/.idea.Day3/.idea/.name +++ /dev/null @@ -1 +0,0 @@ -Day3 \ No newline at end of file diff --git a/2022/day3/.idea/.idea.Day3/.idea/discord.xml b/2022/day3/.idea/.idea.Day3/.idea/discord.xml deleted file mode 100644 index d8e9561..0000000 --- a/2022/day3/.idea/.idea.Day3/.idea/discord.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - \ No newline at end of file diff --git a/2022/day3/.idea/.idea.Day3/.idea/indexLayout.xml b/2022/day3/.idea/.idea.Day3/.idea/indexLayout.xml deleted file mode 100644 index 7b08163..0000000 --- a/2022/day3/.idea/.idea.Day3/.idea/indexLayout.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/2022/day3/.idea/.idea.Day3/.idea/vcs.xml b/2022/day3/.idea/.idea.Day3/.idea/vcs.xml deleted file mode 100644 index b2bdec2..0000000 --- a/2022/day3/.idea/.idea.Day3/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/2022/day3/Day3.csproj b/2022/day3/Day3.csproj deleted file mode 100644 index b9de063..0000000 --- a/2022/day3/Day3.csproj +++ /dev/null @@ -1,10 +0,0 @@ - - - - Exe - net6.0 - enable - enable - - - diff --git a/2022/day3/Day3.sln b/2022/day3/Day3.sln deleted file mode 100644 index d860cd7..0000000 --- a/2022/day3/Day3.sln +++ /dev/null @@ -1,16 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Day3", "Day3.csproj", "{097D408C-BA93-416B-8F2C-3B61A729F20D}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {097D408C-BA93-416B-8F2C-3B61A729F20D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {097D408C-BA93-416B-8F2C-3B61A729F20D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {097D408C-BA93-416B-8F2C-3B61A729F20D}.Release|Any CPU.ActiveCfg = Release|Any CPU - {097D408C-BA93-416B-8F2C-3B61A729F20D}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection -EndGlobal diff --git a/2022/day3/Part1.cs b/2022/day3/Part1.cs deleted file mode 100644 index d796e6a..0000000 --- a/2022/day3/Part1.cs +++ /dev/null @@ -1,38 +0,0 @@ -namespace Day3; - -public class Part1 -{ - private static int _sum = 0; - public static void Part1Solver() - { - string[] backpacks = File.ReadAllText("input.txt").Split('\n'); - List duplicates = new List(); - - foreach (string backpack in backpacks) - { - int compartmentSize = backpack.Length / 2; - List itemsInCompartment1 = new List(); - List itemsInCompartment2 = new List(); - - for (int i = 0; i < compartmentSize; i++) - itemsInCompartment1.Add(backpack[i]); - for (int i = compartmentSize; i < compartmentSize * 2; i++) - itemsInCompartment2.Add(backpack[i]); - - char duplicatedItem = itemsInCompartment1.Intersect(itemsInCompartment2).FirstOrDefault(); - duplicates.Add(duplicatedItem); - } - - duplicates.RemoveAt(300); - - foreach (char duplicate in duplicates) - { - if (Char.IsUpper(duplicate)) - _sum += Convert.ToInt16(duplicate) - 38; - else - _sum += Convert.ToInt16(duplicate) - 96; - } - - Console.WriteLine($"Sum is {_sum}"); - } -} \ No newline at end of file diff --git a/2022/day3/Part2.cs b/2022/day3/Part2.cs deleted file mode 100644 index de2e91e..0000000 --- a/2022/day3/Part2.cs +++ /dev/null @@ -1,48 +0,0 @@ -namespace Day3; - -public class Part2 -{ - private static int _sum = 0; - public static void Part2Solver() - { - string[] backpacks = File.ReadAllText("input.txt").Split('\n'); - List> groups = new List>(); - - for (int i = 0; i < backpacks.Length; i+=3) - { - List group = new List(); - - for (int x = 0; x < 3; x++) - { - try - { - group.Add(backpacks[i + x]); - } - catch - { - break; - } - } - - if (group.All(x => x != "")) - groups.Add(group); - } - - List duplicates = new List(); - foreach (List group in groups) - { - string[] groupArray = group.ToArray(); - duplicates.Add(groupArray[0].Intersect(groupArray[1].Intersect(groupArray[2])).FirstOrDefault()); - } - - foreach (char duplicate in duplicates) - { - if (Char.IsUpper(duplicate)) - _sum += Convert.ToInt16(duplicate) - 38; - else - _sum += Convert.ToInt16(duplicate) - 96; - } - - Console.WriteLine($"Sum is {_sum}"); - } -} \ No newline at end of file diff --git a/2022/day3/Program.cs b/2022/day3/Program.cs deleted file mode 100644 index 2088bce..0000000 --- a/2022/day3/Program.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace Day3; - -internal class Program -{ - public static void Main(string[] args) - => Part2.Part2Solver(); -} - diff --git a/2022/day3/bin/Debug/net6.0/Day3 b/2022/day3/bin/Debug/net6.0/Day3 deleted file mode 100755 index 61952a3..0000000 Binary files a/2022/day3/bin/Debug/net6.0/Day3 and /dev/null differ diff --git a/2022/day3/bin/Debug/net6.0/Day3.deps.json b/2022/day3/bin/Debug/net6.0/Day3.deps.json deleted file mode 100644 index 154b0f3..0000000 --- a/2022/day3/bin/Debug/net6.0/Day3.deps.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "runtimeTarget": { - "name": ".NETCoreApp,Version=v6.0", - "signature": "" - }, - "compilationOptions": {}, - "targets": { - ".NETCoreApp,Version=v6.0": { - "Day3/1.0.0": { - "runtime": { - "Day3.dll": {} - } - } - } - }, - "libraries": { - "Day3/1.0.0": { - "type": "project", - "serviceable": false, - "sha512": "" - } - } -} \ No newline at end of file diff --git a/2022/day3/bin/Debug/net6.0/Day3.dll b/2022/day3/bin/Debug/net6.0/Day3.dll deleted file mode 100644 index e8ddb91..0000000 Binary files a/2022/day3/bin/Debug/net6.0/Day3.dll and /dev/null differ diff --git a/2022/day3/bin/Debug/net6.0/Day3.pdb b/2022/day3/bin/Debug/net6.0/Day3.pdb deleted file mode 100644 index 3f95bba..0000000 Binary files a/2022/day3/bin/Debug/net6.0/Day3.pdb and /dev/null differ diff --git a/2022/day3/bin/Debug/net6.0/Day3.runtimeconfig.json b/2022/day3/bin/Debug/net6.0/Day3.runtimeconfig.json deleted file mode 100644 index 4986d16..0000000 --- a/2022/day3/bin/Debug/net6.0/Day3.runtimeconfig.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "runtimeOptions": { - "tfm": "net6.0", - "framework": { - "name": "Microsoft.NETCore.App", - "version": "6.0.0" - } - } -} \ No newline at end of file diff --git a/2022/day3/bin/Debug/net6.0/input.txt b/2022/day3/bin/Debug/net6.0/input.txt deleted file mode 100644 index 0e4ee5e..0000000 --- a/2022/day3/bin/Debug/net6.0/input.txt +++ /dev/null @@ -1,300 +0,0 @@ -dtddvvhwttHJhwdhJPddhwJGppmGjgpQgTjQplQpTljwpg -BfzSzRSVVMVNRMDDNBSNSnfBmbrglGQbmNpQggFjpgpbQlQb -ZSBffLnVZdCCPJjhhL -RGCZpWWWFlHQQbgvFssg -jLnMzjnrnjjNjhrjdwbHscsVVgDVQPvPwh -nfJnLMLzjJMtnjNnnBbZtBWBqqbTTTBRpT -nddlhBtqTBqTVSlBtmCmVcRVmZggfWbcZc -jDjvPrPSNPwrDNRWbbgWCjRRCcWm -DzDwSpFrvrvFPQLzQnsqztBthTJnGJqlsJ -gssGmzwgRgsNmTsqgDnDJnbDHHhhzFdDDh -WQVFjMWrVQrVvVVjVctSSLSMZhnJZPBnbdnhbnHZZBDJBh -VCtcccVQLrfvrSlGmfTfNgfmlFgm -DsmfsBbNNZhDWsbmWmNbbPDHLFjcctjjGcnZGzncnctcGH -SwVQJrjVwpgSVRpjpVRrlTMCFFCLCFFcHzzGMcHrtHHH -ppVwTwSwpwvSlSlJTjVVbPhsvvBssWsNfsqWPvWs -BJwqwJtqqDDDrGDnPFzPFfpphD -TgZscCHQLSHgZcfMzpjFFjzsshfj -LcNlTVQCCVLLZTLNvpRtpvBBvRJmNB -bDBGQBBCTTNPGPPwPzcHfVHrDtLWLVrWVjjHWr -gpssqqsqlMFfLZQWftjVpr -lvqqFMRlFcQvbzCNCG -fhhMDdPhWMJMWvhhSfwRSGlzFbSFNlzw -LcqTCqcgZqjTggVjcwbFRwbDBTzbRGRwTS -cHLpZ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VccmSJcSpGBWWWbBHfWWnfttJWnWJpJ -wDzqhjzmqRzDRwqDzNDbWtjWBBBtGbtHpHnnBf -zglRhDqqDZgRNmZQVCdcCPQvvdZv -RpVjRgvFjGBNWtBWFDtt -dcqQwlqMMsCLLfbgQmtD -snlgzsggTzSTSJTr -dLHhDdtlMngFcFsFLFzzsj -vWRGGRVrrWvvGQQJBRsmQzmsqnffqcNfNcfz -vSRVJBVBwTvWTnHphTgDgtMpDl -bvvGnnJbfPmfdgJJSVtwwCpTScVfNpSC -sjsZWDqBqqMRZsDjbWMVwtwNNcNtScRHpRRttp -hzhDqqWDzZzDZzZLQPJPdPnPvlrbGdlnFQ -PwWHTwzFvNHsNzmmMwzNWGQrCqCFjpZbpnGqrqnpbr -gRVRgJRJlDLSJddDccQVrtZnCqjndnrZdnqnqpdq -chhgSSJfQhRRcSSSSBLVfzmzHTNzMNsTNWHMMvMP -lftqSpBSvhlDBDlhBSczQGmcFMcMVVFMmGFWsm -rHLHTNdggsLLnwLHbTTgdrTMPPmMGWZGQQMzQVQFZQGM -gbJnrHHjnbrgLrRrHpBJvSBDDsfJsDtstq -dBTtFLTtVmpdLhMprSRSWMRSMR -QvJvQbjbCgCQRBhzzRsNWNBC -bjgGqQGbQnjGQgnQgbGgjJnDLHLdfPVtdDmLZdBFVVZttdTf diff --git a/2022/day3/bin/Debug/net6.0/ref/Day3.dll b/2022/day3/bin/Debug/net6.0/ref/Day3.dll deleted file mode 100644 index 24b524d..0000000 Binary files a/2022/day3/bin/Debug/net6.0/ref/Day3.dll and /dev/null differ diff --git a/2022/day3/obj/Day3.csproj.nuget.dgspec.json b/2022/day3/obj/Day3.csproj.nuget.dgspec.json deleted file mode 100644 index 417152a..0000000 --- a/2022/day3/obj/Day3.csproj.nuget.dgspec.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "format": 1, - "restore": { - "/home/tiagorg/repos/advent-of-code-2022/days1-5/day3/Day3.csproj": {} - }, - "projects": { - "/home/tiagorg/repos/advent-of-code-2022/days1-5/day3/Day3.csproj": { - "version": "1.0.0", - "restore": { - "projectUniqueName": "/home/tiagorg/repos/advent-of-code-2022/days1-5/day3/Day3.csproj", - "projectName": "Day3", - "projectPath": "/home/tiagorg/repos/advent-of-code-2022/days1-5/day3/Day3.csproj", - "packagesPath": "/home/tiagorg/.nuget/packages/", - "outputPath": "/home/tiagorg/repos/advent-of-code-2022/days1-5/day3/obj/", - "projectStyle": "PackageReference", - "configFilePaths": [ - "/home/tiagorg/.nuget/NuGet/NuGet.Config" - ], - "originalTargetFrameworks": [ - "net6.0" - ], - "sources": { - "https://api.nuget.org/v3/index.json": {} - }, - "frameworks": { - "net6.0": { - "targetAlias": "net6.0", - "projectReferences": {} - } - }, - "warningProperties": { - "warnAsError": [ - "NU1605" - ] - } - }, - "frameworks": { - "net6.0": { - "targetAlias": "net6.0", - "imports": [ - "net461", - "net462", - "net47", - "net471", - "net472", - "net48" - ], - "assetTargetFallback": true, - "warn": true, - "frameworkReferences": { - "Microsoft.NETCore.App": { - "privateAssets": "all" - } - }, - "runtimeIdentifierGraphPath": "/usr/lib/dotnet/sdk/6.0.111/RuntimeIdentifierGraph.json" - } - } - } - } -} \ No newline at end of file diff --git a/2022/day3/obj/Day3.csproj.nuget.g.props b/2022/day3/obj/Day3.csproj.nuget.g.props deleted file mode 100644 index bc01ea1..0000000 --- a/2022/day3/obj/Day3.csproj.nuget.g.props +++ /dev/null @@ -1,15 +0,0 @@ - - - - True - NuGet - $(MSBuildThisFileDirectory)project.assets.json - /home/tiagorg/.nuget/packages/ - /home/tiagorg/.nuget/packages/ - PackageReference - 6.3.1 - - - - - \ No newline at end of file diff --git a/2022/day3/obj/Day3.csproj.nuget.g.targets b/2022/day3/obj/Day3.csproj.nuget.g.targets deleted file mode 100644 index 3dc06ef..0000000 --- a/2022/day3/obj/Day3.csproj.nuget.g.targets +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/2022/day3/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs b/2022/day3/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs deleted file mode 100644 index 36203c7..0000000 --- a/2022/day3/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs +++ /dev/null @@ -1,4 +0,0 @@ -// -using System; -using System.Reflection; -[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = "")] diff --git a/2022/day3/obj/Debug/net6.0/Day3.AssemblyInfo.cs b/2022/day3/obj/Debug/net6.0/Day3.AssemblyInfo.cs deleted file mode 100644 index f72f77c..0000000 --- a/2022/day3/obj/Debug/net6.0/Day3.AssemblyInfo.cs +++ /dev/null @@ -1,22 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -using System; -using System.Reflection; - -[assembly: System.Reflection.AssemblyCompanyAttribute("Day3")] -[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] -[assembly: System.Reflection.AssemblyProductAttribute("Day3")] -[assembly: System.Reflection.AssemblyTitleAttribute("Day3")] -[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] - -// Generated by the MSBuild WriteCodeFragment class. - diff --git a/2022/day3/obj/Debug/net6.0/Day3.AssemblyInfoInputs.cache b/2022/day3/obj/Debug/net6.0/Day3.AssemblyInfoInputs.cache deleted file mode 100644 index 36d6788..0000000 --- a/2022/day3/obj/Debug/net6.0/Day3.AssemblyInfoInputs.cache +++ /dev/null @@ -1 +0,0 @@ -0dac98bec9329467876de2744db541b9695c4a5a diff --git a/2022/day3/obj/Debug/net6.0/Day3.GeneratedMSBuildEditorConfig.editorconfig b/2022/day3/obj/Debug/net6.0/Day3.GeneratedMSBuildEditorConfig.editorconfig deleted file mode 100644 index a21b6e1..0000000 --- a/2022/day3/obj/Debug/net6.0/Day3.GeneratedMSBuildEditorConfig.editorconfig +++ /dev/null @@ -1,10 +0,0 @@ -is_global = true -build_property.TargetFramework = net6.0 -build_property.TargetPlatformMinVersion = -build_property.UsingMicrosoftNETSdkWeb = -build_property.ProjectTypeGuids = -build_property.InvariantGlobalization = -build_property.PlatformNeutralAssembly = -build_property._SupportedPlatformList = Linux,macOS,Windows -build_property.RootNamespace = Day3 -build_property.ProjectDir = /home/tiagorg/repos/advent-of-code-2022/days1-5/day3/ diff --git a/2022/day3/obj/Debug/net6.0/Day3.GlobalUsings.g.cs b/2022/day3/obj/Debug/net6.0/Day3.GlobalUsings.g.cs deleted file mode 100644 index 8578f3d..0000000 --- a/2022/day3/obj/Debug/net6.0/Day3.GlobalUsings.g.cs +++ /dev/null @@ -1,8 +0,0 @@ -// -global using global::System; -global using global::System.Collections.Generic; -global using global::System.IO; -global using global::System.Linq; -global using global::System.Net.Http; -global using global::System.Threading; -global using global::System.Threading.Tasks; diff --git a/2022/day3/obj/Debug/net6.0/Day3.assets.cache b/2022/day3/obj/Debug/net6.0/Day3.assets.cache deleted file mode 100644 index 1ed5703..0000000 Binary files a/2022/day3/obj/Debug/net6.0/Day3.assets.cache and /dev/null differ diff --git a/2022/day3/obj/Debug/net6.0/Day3.csproj.AssemblyReference.cache b/2022/day3/obj/Debug/net6.0/Day3.csproj.AssemblyReference.cache deleted file mode 100644 index 94fb1b6..0000000 Binary files a/2022/day3/obj/Debug/net6.0/Day3.csproj.AssemblyReference.cache and /dev/null differ diff --git a/2022/day3/obj/Debug/net6.0/Day3.csproj.CoreCompileInputs.cache b/2022/day3/obj/Debug/net6.0/Day3.csproj.CoreCompileInputs.cache deleted file mode 100644 index 92b561d..0000000 --- a/2022/day3/obj/Debug/net6.0/Day3.csproj.CoreCompileInputs.cache +++ /dev/null @@ -1 +0,0 @@ -c934cb40fbc3b9f9ef1ef028f4547779ca0dc8b7 diff --git a/2022/day3/obj/Debug/net6.0/Day3.csproj.FileListAbsolute.txt b/2022/day3/obj/Debug/net6.0/Day3.csproj.FileListAbsolute.txt deleted file mode 100644 index 06950de..0000000 --- a/2022/day3/obj/Debug/net6.0/Day3.csproj.FileListAbsolute.txt +++ /dev/null @@ -1,15 +0,0 @@ -/home/tiagorg/repos/advent-of-code-2022/days1-5/day3/Day3/bin/Debug/net6.0/Day3 -/home/tiagorg/repos/advent-of-code-2022/days1-5/day3/Day3/bin/Debug/net6.0/Day3.deps.json -/home/tiagorg/repos/advent-of-code-2022/days1-5/day3/Day3/bin/Debug/net6.0/Day3.runtimeconfig.json -/home/tiagorg/repos/advent-of-code-2022/days1-5/day3/Day3/bin/Debug/net6.0/Day3.dll -/home/tiagorg/repos/advent-of-code-2022/days1-5/day3/Day3/bin/Debug/net6.0/ref/Day3.dll -/home/tiagorg/repos/advent-of-code-2022/days1-5/day3/Day3/bin/Debug/net6.0/Day3.pdb -/home/tiagorg/repos/advent-of-code-2022/days1-5/day3/Day3/obj/Debug/net6.0/Day3.csproj.AssemblyReference.cache -/home/tiagorg/repos/advent-of-code-2022/days1-5/day3/Day3/obj/Debug/net6.0/Day3.GeneratedMSBuildEditorConfig.editorconfig -/home/tiagorg/repos/advent-of-code-2022/days1-5/day3/Day3/obj/Debug/net6.0/Day3.AssemblyInfoInputs.cache -/home/tiagorg/repos/advent-of-code-2022/days1-5/day3/Day3/obj/Debug/net6.0/Day3.AssemblyInfo.cs -/home/tiagorg/repos/advent-of-code-2022/days1-5/day3/Day3/obj/Debug/net6.0/Day3.csproj.CoreCompileInputs.cache -/home/tiagorg/repos/advent-of-code-2022/days1-5/day3/Day3/obj/Debug/net6.0/Day3.dll -/home/tiagorg/repos/advent-of-code-2022/days1-5/day3/Day3/obj/Debug/net6.0/ref/Day3.dll -/home/tiagorg/repos/advent-of-code-2022/days1-5/day3/Day3/obj/Debug/net6.0/Day3.pdb -/home/tiagorg/repos/advent-of-code-2022/days1-5/day3/Day3/obj/Debug/net6.0/Day3.genruntimeconfig.cache diff --git a/2022/day3/obj/Debug/net6.0/Day3.dll b/2022/day3/obj/Debug/net6.0/Day3.dll deleted file mode 100644 index e8ddb91..0000000 Binary files a/2022/day3/obj/Debug/net6.0/Day3.dll and /dev/null differ diff --git a/2022/day3/obj/Debug/net6.0/Day3.genruntimeconfig.cache b/2022/day3/obj/Debug/net6.0/Day3.genruntimeconfig.cache deleted file mode 100644 index e1d9165..0000000 --- a/2022/day3/obj/Debug/net6.0/Day3.genruntimeconfig.cache +++ /dev/null @@ -1 +0,0 @@ -b0fc49afd48396266b0092be0971ac33419bc314 diff --git a/2022/day3/obj/Debug/net6.0/Day3.pdb b/2022/day3/obj/Debug/net6.0/Day3.pdb deleted file mode 100644 index 3f95bba..0000000 Binary files a/2022/day3/obj/Debug/net6.0/Day3.pdb and /dev/null differ diff --git a/2022/day3/obj/Debug/net6.0/apphost b/2022/day3/obj/Debug/net6.0/apphost deleted file mode 100755 index 61952a3..0000000 Binary files a/2022/day3/obj/Debug/net6.0/apphost and /dev/null differ diff --git a/2022/day3/obj/Debug/net6.0/ref/Day3.dll b/2022/day3/obj/Debug/net6.0/ref/Day3.dll deleted file mode 100644 index 24b524d..0000000 Binary files a/2022/day3/obj/Debug/net6.0/ref/Day3.dll and /dev/null differ diff --git a/2022/day3/obj/project.assets.json b/2022/day3/obj/project.assets.json deleted file mode 100644 index 7b8d0d5..0000000 --- a/2022/day3/obj/project.assets.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "version": 3, - "targets": { - "net6.0": {} - }, - "libraries": {}, - "projectFileDependencyGroups": { - "net6.0": [] - }, - "packageFolders": { - "/home/tiagorg/.nuget/packages/": {} - }, - "project": { - "version": "1.0.0", - "restore": { - "projectUniqueName": "/home/tiagorg/repos/advent-of-code-2022/days1-5/day3/Day3.csproj", - "projectName": "Day3", - "projectPath": "/home/tiagorg/repos/advent-of-code-2022/days1-5/day3/Day3.csproj", - "packagesPath": "/home/tiagorg/.nuget/packages/", - "outputPath": "/home/tiagorg/repos/advent-of-code-2022/days1-5/day3/obj/", - "projectStyle": "PackageReference", - "configFilePaths": [ - "/home/tiagorg/.nuget/NuGet/NuGet.Config" - ], - "originalTargetFrameworks": [ - "net6.0" - ], - "sources": { - "https://api.nuget.org/v3/index.json": {} - }, - "frameworks": { - "net6.0": { - "targetAlias": "net6.0", - "projectReferences": {} - } - }, - "warningProperties": { - "warnAsError": [ - "NU1605" - ] - } - }, - "frameworks": { - "net6.0": { - "targetAlias": "net6.0", - "imports": [ - "net461", - "net462", - "net47", - "net471", - "net472", - "net48" - ], - "assetTargetFallback": true, - "warn": true, - "frameworkReferences": { - "Microsoft.NETCore.App": { - "privateAssets": "all" - } - }, - "runtimeIdentifierGraphPath": "/usr/lib/dotnet/sdk/6.0.111/RuntimeIdentifierGraph.json" - } - } - } -} \ No newline at end of file diff --git a/2022/day3/obj/project.nuget.cache b/2022/day3/obj/project.nuget.cache deleted file mode 100644 index 059dede..0000000 --- a/2022/day3/obj/project.nuget.cache +++ /dev/null @@ -1,8 +0,0 @@ -{ - "version": 2, - "dgSpecHash": "GxvEt/zas/vqUdpHzZMZPvuL+haK583RnNkxhVCSPdJDli7g7c3qfF2A6o3s8ThqnbQPqZDD01GBDr24H4DZdg==", - "success": true, - "projectFilePath": "/home/tiagorg/repos/advent-of-code-2022/days1-5/day3/Day3.csproj", - "expectedPackageFiles": [], - "logs": [] -} \ No newline at end of file diff --git a/2022/day3/obj/project.packagespec.json b/2022/day3/obj/project.packagespec.json deleted file mode 100644 index 63c7e92..0000000 --- a/2022/day3/obj/project.packagespec.json +++ /dev/null @@ -1 +0,0 @@ -"restore":{"projectUniqueName":"/home/tiagorg/repos/advent-of-code-2022/days1-5/day3/Day3.csproj","projectName":"Day3","projectPath":"/home/tiagorg/repos/advent-of-code-2022/days1-5/day3/Day3.csproj","outputPath":"/home/tiagorg/repos/advent-of-code-2022/days1-5/day3/obj/","projectStyle":"PackageReference","originalTargetFrameworks":["net6.0"],"sources":{"https://api.nuget.org/v3/index.json":{}},"frameworks":{"net6.0":{"targetAlias":"net6.0","projectReferences":{}}},"warningProperties":{"warnAsError":["NU1605"]}}"frameworks":{"net6.0":{"targetAlias":"net6.0","imports":["net461","net462","net47","net471","net472","net48"],"assetTargetFallback":true,"warn":true,"frameworkReferences":{"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"/usr/lib/dotnet/sdk/6.0.111/RuntimeIdentifierGraph.json"}} \ No newline at end of file diff --git a/2022/day3/obj/rider.project.restore.info b/2022/day3/obj/rider.project.restore.info deleted file mode 100644 index e91ba0b..0000000 --- a/2022/day3/obj/rider.project.restore.info +++ /dev/null @@ -1 +0,0 @@ -16702392523558223 \ No newline at end of file diff --git a/2022/day4/day4.py b/2022/day4/day4.py deleted file mode 100644 index ac0c062..0000000 --- a/2022/day4/day4.py +++ /dev/null @@ -1,18 +0,0 @@ -with open('input.txt', 'r') as f: - inputContent = f.read().splitlines() - containedCount = 0 - intersectCount = 0 - for line in inputContent: - pair = line.split(',') - startRange1, endRange1 = pair[0].split('-') - startRange2, endRange2 = pair[1].split('-') - if ((int(startRange1) >= int(startRange2) and int(endRange1) <= int(endRange2)) - or (int(startRange2) >= int(startRange1) and int(endRange2) <= int(endRange1))): - containedCount += 1 - - if ((int(endRange1) >= int(startRange2) and int(startRange1) <= int(endRange2)) - or (int(endRange2) >= int(startRange1) and int(startRange2) <= int(endRange1))): - intersectCount += 1 - -print("Contained Count:", containedCount) -print("Intersect Count:", intersectCount) diff --git a/2022/day4/input.txt b/2022/day4/input.txt deleted file mode 100644 index c84044f..0000000 --- a/2022/day4/input.txt +++ /dev/null @@ -1,1000 +0,0 @@ -7-96,6-95 -36-41,35-40 -35-84,83-91 -95-96,5-95 -3-3,4-99 -12-21,21-22 -10-28,10-28 -6-11,10-12 -12-91,76-98 -17-69,18-69 -26-81,7-27 -26-42,57-80 -32-38,33-38 -4-83,5-83 -33-85,34-86 -14-95,6-78 -79-84,78-87 -12-61,11-62 -56-92,55-92 -34-63,9-34 -33-44,33-85 -5-17,16-26 -21-43,21-32 -12-60,59-60 -10-48,10-49 -94-94,71-94 -45-46,24-46 -81-97,82-98 -5-27,27-57 -3-96,2-22 -5-92,2-97 -53-87,76-90 -68-83,82-82 -55-67,55-73 -39-79,78-78 -81-86,87-97 -3-25,2-67 -50-63,62-62 -5-96,5-97 -27-88,28-88 -19-53,20-53 -55-89,55-90 -43-46,43-99 -82-95,56-96 -8-57,8-8 -90-95,2-90 -56-78,34-81 -53-81,54-81 -20-30,9-62 -12-83,11-16 -64-65,63-69 -15-95,15-94 -6-94,4-93 -36-93,8-92 -67-74,68-74 -4-89,5-89 -23-24,22-23 -44-53,45-80 -43-60,43-83 -61-69,62-78 -77-77,25-77 -43-65,43-66 -12-65,13-84 -54-56,54-97 -13-34,33-60 -20-55,55-56 -34-93,35-92 -26-85,27-96 -51-97,9-97 -18-41,17-40 -3-14,14-80 -55-66,8-56 -4-89,64-98 -20-98,20-63 -1-16,15-22 -20-93,41-92 -9-86,8-10 -5-27,27-28 -29-51,30-48 -44-64,44-44 -29-96,2-96 -1-98,13-97 -6-84,18-84 -28-81,27-72 -7-95,6-95 -43-84,78-84 -2-62,35-98 -46-88,9-88 -11-19,10-18 -21-81,22-89 -98-99,78-98 -26-57,25-57 -12-31,10-30 -31-84,32-85 -93-93,91-93 -10-89,8-76 -6-36,7-36 -51-96,95-99 -14-32,5-17 -23-37,34-38 -14-15,22-82 -95-96,72-95 -38-52,53-53 -25-94,25-96 -38-74,37-74 -73-94,41-73 -72-85,35-84 -15-98,14-16 -81-94,82-94 -85-89,85-87 -3-87,3-83 -84-93,4-91 -42-57,42-50 -42-80,23-42 -18-26,18-27 -44-58,44-99 -35-68,3-67 -40-97,41-53 -11-99,12-12 -7-51,12-59 -13-71,68-71 -5-12,4-97 -8-20,20-79 -13-91,12-14 -33-62,18-32 -3-94,5-94 -26-98,26-93 -31-38,30-85 -13-83,14-82 -6-74,73-74 -73-73,45-62 -38-38,38-38 -9-21,4-20 -14-60,13-83 -83-90,83-89 -73-73,6-74 -1-3,3-94 -3-84,3-85 -61-90,81-97 -93-93,23-94 -31-81,81-81 -26-76,75-75 -95-96,94-94 -70-72,71-89 -95-95,4-95 -10-70,9-11 -3-99,4-98 -26-99,26-92 -77-95,78-90 -47-82,48-83 -4-83,82-88 -51-51,42-50 -10-86,11-96 -9-46,39-49 -20-78,20-79 -1-62,2-61 -57-59,58-75 -4-90,28-90 -4-4,4-52 -34-81,35-96 -32-68,67-83 -83-87,84-88 -71-96,71-71 -61-96,95-99 -3-99,1-4 -13-94,12-95 -13-86,14-95 -36-89,35-88 -8-12,12-96 -34-55,33-55 -43-55,56-95 -38-39,7-38 -3-48,47-98 -86-86,5-86 -4-64,4-4 -80-97,41-98 -16-16,30-54 -3-94,4-94 -16-90,15-91 -7-19,7-84 -64-79,8-79 -29-94,94-95 -25-86,24-85 -91-95,90-93 -3-54,3-96 -4-92,6-95 -14-14,14-70 -65-82,83-83 -5-80,18-35 -63-88,44-52 -3-65,1-21 -34-87,49-49 -92-94,48-93 -3-96,3-95 -52-70,51-75 -64-64,7-64 -20-53,21-63 -3-9,6-10 -49-93,50-94 -38-97,38-94 -91-95,92-96 -38-43,38-45 -73-74,19-73 -26-83,82-83 -71-72,71-71 -6-97,6-98 -67-93,90-94 -39-97,40-97 -10-33,33-40 -35-84,34-93 -5-72,73-73 -15-98,14-66 -24-66,25-84 -23-49,11-50 -35-79,34-36 -15-78,16-94 -87-89,6-88 -5-8,7-39 -13-82,2-5 -70-70,14-70 -47-86,87-94 -10-98,9-94 -2-63,1-62 -26-67,26-26 -67-68,66-68 -51-58,49-57 -29-44,41-45 -33-95,34-95 -4-18,4-17 -75-89,75-75 -12-87,11-87 -29-60,31-61 -35-37,36-44 -11-62,10-73 -12-36,12-30 -67-67,67-77 -9-96,10-98 -15-71,12-72 -87-90,15-86 -37-76,37-77 -74-75,73-74 -32-71,31-72 -14-29,29-60 -47-94,36-79 -19-89,16-84 -84-85,77-84 -38-80,7-80 -24-36,25-52 -47-48,47-48 -95-96,34-95 -72-80,72-76 -13-75,12-75 -6-89,5-88 -61-90,21-90 -98-98,1-99 -41-84,41-52 -11-44,11-43 -25-97,25-96 -36-99,35-89 -24-53,23-56 -12-12,12-91 -52-88,52-87 -5-10,5-9 -94-96,7-95 -10-94,9-93 -30-32,31-60 -83-83,9-83 -73-97,60-72 -60-81,38-81 -20-59,19-21 -1-93,74-93 -64-86,17-85 -37-40,37-70 -53-87,24-54 -21-81,20-81 -53-93,54-94 -35-73,39-74 -5-74,6-73 -13-97,24-98 -80-87,81-90 -13-41,42-42 -40-40,40-61 -30-53,31-52 -73-97,74-95 -77-93,78-94 -42-81,43-98 -29-49,18-57 -93-99,97-99 -12-64,12-99 -25-99,46-98 -5-70,11-88 -7-65,7-99 -32-89,31-88 -6-92,1-61 -1-9,10-56 -57-96,97-98 -51-97,98-99 -15-81,14-81 -9-28,10-51 -4-99,4-98 -49-55,49-49 -51-77,43-78 -18-55,19-54 -22-22,22-85 -38-83,37-82 -20-89,4-13 -58-89,1-90 -94-95,55-94 -38-83,69-93 -29-53,52-52 -9-99,10-99 -37-67,37-66 -39-97,19-49 -10-96,9-63 -23-98,75-98 -15-96,15-93 -5-10,9-56 -7-84,3-8 -84-86,73-85 -64-84,39-75 -23-41,22-23 -18-20,16-18 -69-82,69-97 -42-76,43-74 -27-29,16-29 -52-63,55-64 -22-91,96-99 -13-74,12-75 -76-81,76-80 -23-54,20-53 -85-87,47-86 -23-33,22-30 -3-19,19-19 -36-43,43-53 -2-89,1-99 -9-31,8-15 -92-94,64-94 -36-88,35-70 -70-73,68-72 -44-70,33-38 -40-91,40-99 -77-77,15-76 -21-37,30-77 -82-86,61-82 -3-77,3-92 -49-60,15-60 -9-85,65-86 -2-13,12-65 -39-48,47-49 -37-77,37-37 -53-54,54-81 -43-72,42-71 -4-4,5-85 -54-85,85-85 -39-79,40-80 -9-83,8-84 -12-79,3-80 -62-92,61-90 -4-64,62-63 -82-82,9-82 -31-85,43-86 -5-51,4-52 -95-98,98-99 -61-89,89-90 -5-57,30-69 -6-46,6-50 -6-43,12-42 -33-58,32-57 -55-55,56-91 -92-94,42-93 -3-98,98-98 -12-68,3-13 -77-77,78-78 -33-92,91-91 -12-13,13-44 -2-93,1-3 -42-49,41-47 -16-86,3-16 -13-26,26-32 -1-95,46-95 -36-58,37-38 -15-17,18-98 -57-83,70-84 -23-85,5-23 -50-99,8-96 -76-76,75-82 -4-97,98-98 -3-24,11-30 -27-27,13-28 -25-55,23-24 -26-48,26-86 -15-42,14-42 -50-61,50-62 -39-96,3-39 -28-52,43-56 -20-90,61-91 -79-99,99-99 -8-23,8-29 -12-78,12-77 -39-41,27-40 -8-90,5-7 -8-32,20-33 -21-89,22-90 -3-36,3-99 -37-60,36-63 -28-42,5-42 -44-57,40-56 -52-69,43-69 -9-10,8-9 -1-98,1-99 -8-21,3-12 -1-82,1-56 -16-16,5-15 -37-56,38-75 -20-53,19-31 -54-97,97-97 -11-93,10-38 -18-60,7-41 -96-99,8-97 -42-63,63-92 -12-51,50-51 -45-45,44-87 -62-63,16-63 -36-81,36-36 -4-45,1-4 -12-14,7-13 -64-64,60-64 -68-68,67-68 -9-95,94-98 -56-72,55-74 -34-57,34-46 -33-69,33-70 -65-78,64-66 -3-64,63-65 -6-79,6-69 -66-93,93-94 -55-56,36-55 -8-96,7-95 -33-83,33-93 -54-96,55-96 -1-73,5-90 -76-78,61-77 -10-90,9-94 -27-81,16-57 -85-96,86-96 -48-48,11-49 -47-63,48-48 -18-27,18-48 -40-93,40-46 -31-44,32-43 -21-41,34-40 -44-53,44-54 -28-95,7-95 -2-97,1-97 -20-97,96-99 -71-82,20-72 -4-32,4-98 -56-56,23-55 -10-74,73-73 -22-78,21-77 -57-65,56-65 -45-95,12-87 -62-67,62-77 -33-78,31-79 -33-51,32-50 -21-99,26-87 -11-94,98-99 -15-49,15-50 -2-9,10-83 -39-39,16-40 -15-73,40-74 -98-99,6-98 -46-84,46-81 -9-97,9-96 -56-66,36-55 -65-81,66-93 -14-97,70-96 -47-92,46-92 -12-46,13-19 -5-57,25-86 -44-84,45-83 -14-39,31-39 -46-68,32-69 -13-90,17-80 -14-64,15-78 -3-5,4-57 -6-7,13-57 -75-75,6-75 -46-92,45-64 -17-45,16-45 -8-94,52-99 -94-95,6-94 -37-76,36-75 -55-56,6-65 -40-64,28-50 -12-20,21-95 -28-50,47-51 -99-99,7-98 -37-63,33-89 -14-99,13-13 -7-80,7-19 -19-47,18-18 -37-46,47-47 -17-73,4-86 -9-43,10-43 -26-71,25-26 -14-91,1-10 -31-58,30-31 -44-44,22-45 -59-59,59-60 -9-9,9-64 -44-65,45-46 -10-96,96-96 -2-52,2-84 -35-36,35-35 -94-95,81-94 -12-89,13-90 -4-86,4-93 -13-96,4-96 -52-54,53-72 -6-90,5-91 -10-34,10-75 -22-31,22-30 -23-97,9-96 -7-91,83-95 -8-12,8-18 -34-39,35-38 -2-22,3-87 -6-15,7-54 -37-84,36-62 -51-93,51-94 -4-4,5-97 -17-55,33-56 -48-53,50-89 -17-90,18-99 -8-8,29-60 -18-40,32-87 -3-88,3-89 -14-14,15-53 -55-62,55-61 -5-96,58-97 -50-59,50-98 -37-86,38-86 -1-56,11-68 -65-75,66-69 -66-84,73-92 -99-99,2-99 -99-99,13-99 -65-88,6-93 -13-89,90-90 -41-64,40-63 -21-66,22-66 -57-92,56-93 -57-78,78-92 -94-98,11-94 -10-53,27-54 -37-42,38-42 -17-97,1-17 -39-86,39-85 -6-6,7-43 -20-55,21-55 -93-93,7-94 -73-74,75-95 -29-88,28-72 -40-90,22-86 -75-75,20-76 -15-72,4-74 -69-82,64-81 -21-23,21-59 -56-70,68-73 -9-94,95-95 -4-6,8-53 -7-20,19-45 -25-41,26-40 -62-72,61-74 -79-95,49-79 -2-96,1-95 -19-33,25-59 -8-90,7-91 -28-91,90-92 -11-20,19-88 -5-30,6-10 -8-99,8-8 -90-99,94-99 -19-77,19-94 -37-58,37-63 -23-44,3-45 -6-98,5-98 -9-42,6-9 -66-75,71-76 -58-87,86-88 -40-48,40-49 -17-24,17-48 -3-97,2-32 -37-88,37-89 -3-89,5-25 -19-61,13-20 -5-67,3-6 -72-73,15-72 -36-78,75-79 -6-92,7-91 -28-97,27-98 -56-56,14-56 -2-92,1-92 -1-7,7-82 -34-71,11-72 -5-96,5-83 -23-71,67-73 -25-93,25-94 -2-99,1-2 -21-73,11-73 -57-63,56-62 -30-33,33-34 -77-77,31-77 -13-78,14-96 -17-80,46-93 -17-46,1-17 -42-50,41-87 -31-84,4-31 -39-80,18-79 -13-31,14-84 -2-96,3-94 -8-98,9-67 -22-60,22-22 -16-97,15-99 -82-93,82-82 -57-77,22-70 -96-97,13-96 -17-41,41-85 -17-72,17-98 -12-96,4-96 -15-18,17-19 -33-53,33-59 -34-41,35-64 -94-98,27-93 -98-98,1-98 -57-69,32-70 -67-89,66-67 -66-72,73-73 -5-43,5-73 -26-98,27-68 -16-80,15-81 -2-65,2-55 -82-92,82-93 -16-16,16-21 -2-19,4-48 -82-82,56-81 -2-97,1-97 -53-54,38-53 -20-87,21-88 -45-60,44-56 -4-4,5-92 -95-95,79-95 -21-71,7-72 -57-83,58-83 -4-66,11-67 -57-57,58-92 -17-91,17-76 -14-15,15-56 -4-4,4-98 -7-98,15-68 -28-94,94-94 -3-47,27-47 -4-33,12-69 -48-56,48-57 -3-26,5-65 -46-71,46-72 -9-98,37-99 -60-76,18-75 -26-26,26-27 -31-56,31-57 -96-96,4-96 -55-82,55-83 -25-26,26-48 -59-71,54-56 -69-70,7-69 -2-98,98-98 -24-74,75-92 -61-96,61-86 -1-73,1-1 -57-86,56-67 -9-94,94-94 -52-52,53-98 -4-7,2-8 -35-63,34-60 -29-94,29-71 -43-89,44-90 -13-17,12-15 -52-58,51-79 -51-94,12-93 -24-52,24-26 -14-53,53-54 -26-91,26-64 -18-78,65-79 -27-64,55-87 -40-67,68-68 -25-70,24-70 -1-82,81-94 -17-19,18-89 -18-18,17-18 -33-60,57-72 -51-73,52-99 -41-98,42-98 -8-25,14-34 -2-17,1-62 -26-40,21-40 -2-21,3-16 -72-85,72-98 -41-86,14-58 -14-16,30-60 -96-97,22-96 -12-57,12-58 -16-74,15-75 -8-61,7-36 -37-56,36-67 -6-99,6-87 -60-75,60-60 -96-98,67-97 -15-26,25-27 -14-88,87-87 -31-95,32-96 -75-91,53-76 -16-49,17-38 -40-82,41-77 -3-59,2-59 -20-44,20-45 -10-76,9-76 -11-13,12-91 -16-18,17-95 -47-62,33-61 -34-69,19-70 -72-92,91-99 -27-34,28-29 -6-86,2-5 -25-75,25-40 -34-68,35-68 -16-95,16-94 -37-96,37-93 -20-62,20-61 -5-86,4-85 -37-49,35-36 -48-59,48-60 -38-42,39-49 -36-89,37-97 -24-26,25-69 -8-93,21-93 -24-83,23-83 -38-68,37-39 -11-70,34-86 -14-88,13-93 -86-86,47-87 -33-67,32-34 -1-80,80-80 -81-82,8-81 -53-97,5-98 -11-30,1-18 -4-99,3-98 -1-99,77-98 -8-14,15-56 -3-70,2-87 -19-34,34-62 -56-57,57-91 -3-64,2-4 -80-83,84-89 -58-59,1-58 -4-77,5-86 -5-97,3-97 -48-94,26-95 -10-96,7-95 -4-4,6-41 -5-23,4-6 -5-91,90-93 -13-88,89-89 -1-97,90-97 -69-80,69-91 -8-11,11-72 -24-45,36-44 -20-20,20-46 -64-73,65-94 -46-90,47-77 -7-61,61-74 -16-25,25-26 -16-16,15-22 -60-89,61-89 -51-99,52-84 -22-85,22-93 -46-71,45-72 -9-65,10-66 -65-69,60-66 -24-43,23-75 -15-30,3-31 -44-93,26-65 -8-35,8-34 -68-82,2-79 -67-71,18-67 -93-97,93-98 -6-83,2-2 -26-84,27-50 -2-50,49-52 -39-80,40-65 -3-3,4-68 -27-84,36-85 -21-86,20-39 -10-82,9-71 -18-86,40-60 -55-80,23-46 -24-30,23-23 -29-68,30-45 -41-48,42-59 -85-94,88-93 -2-99,98-99 -33-94,94-95 -78-80,3-79 -94-94,16-94 -1-4,3-97 -71-96,52-72 -94-96,95-98 -71-72,72-81 -20-33,32-33 -15-55,15-15 -21-33,33-65 -28-33,27-33 -1-93,57-92 -23-64,63-93 -5-89,4-89 -66-71,68-78 -7-80,2-7 -10-86,9-71 -2-99,2-98 -6-15,5-14 -83-88,60-84 -34-37,33-36 -49-82,82-83 -68-75,61-69 -40-87,16-41 -61-67,64-67 -8-67,7-68 -31-61,30-88 -16-77,16-16 -1-62,63-63 -7-67,2-6 -39-67,8-57 -7-94,11-95 -41-93,73-85 -39-54,47-98 -28-90,2-83 -1-6,6-57 -10-11,9-16 -28-82,27-81 -4-95,5-96 -31-95,8-94 -73-91,33-84 -34-92,15-35 -49-94,6-50 -3-99,2-98 -59-60,34-59 -22-76,22-86 -9-11,10-93 -67-78,77-86 -16-83,15-47 -73-81,72-73 -72-88,2-73 -26-62,27-72 -5-81,5-89 -19-69,20-69 -32-97,32-96 -63-86,32-75 -7-97,7-96 -84-92,91-93 -72-96,2-96 -19-22,19-19 -66-82,65-81 -81-96,65-82 -71-83,35-88 -99-99,1-99 -22-97,22-96 -29-97,29-83 -13-85,84-84 -23-67,23-34 -14-81,13-81 -55-98,16-97 -58-78,38-78 -6-16,3-16 -47-78,46-77 -16-53,15-25 -84-90,83-91 -32-32,31-47 -2-21,4-57 -17-56,49-55 -12-67,67-67 -19-71,42-97 -82-82,63-83 -39-46,18-46 -6-97,1-97 -42-88,43-89 -19-19,19-95 -17-95,4-95 -50-96,50-90 -3-81,1-2 -4-47,7-18 -12-17,7-95 -23-92,23-58 -40-91,91-92 -3-69,69-70 -47-50,46-50 -9-92,9-97 -7-71,4-16 -27-38,74-96 -11-30,30-89 -23-46,22-46 -2-6,5-98 -36-93,35-93 -9-19,19-99 -25-33,32-34 -13-36,14-35 -5-97,4-5 -19-99,20-95 -43-79,54-83 -21-99,20-47 -71-74,70-72 -90-90,3-90 -71-99,71-71 -5-6,6-98 -74-84,74-83 -19-95,19-94 -34-81,38-83 -13-34,5-14 -15-80,15-79 -6-23,5-90 -67-76,67-70 -39-91,14-90 -65-96,64-95 -8-88,52-89 -61-94,89-94 -32-66,66-66 -10-28,15-55 -9-93,8-90 -38-97,39-98 -78-84,77-79 -5-85,3-29 -21-80,80-80 -84-89,88-90 -45-85,12-66 -99-99,1-98 -45-49,48-74 -6-98,3-68 -13-95,94-95 -49-52,51-53 -18-43,6-18 -85-85,20-85 -62-65,61-65 -8-92,9-92 -23-83,22-83 -15-77,77-77 -56-74,55-78 -23-78,22-79 -32-80,33-34 -4-99,11-96 -27-91,16-91 -8-82,8-81 -3-39,28-39 -39-47,39-46 -16-21,34-70 -65-98,65-97 -16-86,16-85 -8-99,33-73 -24-94,19-93 -48-57,56-58 -4-96,3-40 -73-83,17-82 -1-3,2-55 -83-96,96-97 -35-83,66-91 -27-44,16-34 -33-82,31-60 -46-88,45-88 -45-78,58-78 -41-47,40-80 -5-95,4-95 -9-65,10-67 -51-82,68-82 -52-98,36-94 -36-38,37-41 -19-33,9-33 -22-98,21-23 -12-96,11-97 -75-77,11-76 -91-92,12-91 -92-93,4-93 -18-18,17-18 -20-45,44-55 -94-95,61-94 -38-99,39-73 -6-11,11-84 -29-49,9-29 -24-91,24-44 -72-72,28-72 -49-53,49-51 -9-85,8-85 -26-80,26-90 diff --git a/2022/day5/day5.py b/2022/day5/day5.py deleted file mode 100644 index 4485b21..0000000 --- a/2022/day5/day5.py +++ /dev/null @@ -1,60 +0,0 @@ -def main() -> None: - with open('input.txt', 'r') as f: - input_content = f.read() - crate_input_content, moves_input_content = input_content.split('\n\n') - - crates_dictionary = { - 1: [], - 2: [], - 3: [], - 4: [], - 5: [], - 6: [], - 7: [], - 8: [], - 9: [], - } - crates_dictionary_builder(crates_dictionary, crate_input_content) - move_list = move_list_builder(moves_input_content) - - print(crates_dictionary) - - for move in move_list: - crates_moved = crates_dictionary[move[1]][:move[0]] - for i in range(move[0]): - crates_dictionary[move[1]].remove(crates_dictionary[move[1]][0]) - for crate in crates_moved[::-1]: # Remove [::-1] for part 1 - crates_dictionary[move[2]].insert(0, crate) - print(crates_dictionary) - - for crates in crates_dictionary.values(): - print(crates[0], end='') - - -def crates_dictionary_builder(c_dict: dict, content: str) -> None: - content_lines = content[:-1].splitlines() - for line in content_lines: - first_crate = 0 - if line[first_crate] == '[': - c_dict[1].append(line[1]) - while '[' in line[first_crate+1:]: - try: - first_crate = line.index('[', first_crate+1) - except ValueError: - print('a') - c_dict[first_crate//4+1] += line[first_crate+1] - - -def move_list_builder(content: str) -> list[tuple]: - moves_content = content.splitlines() - move_list = [] - for move in moves_content: - move = move[5:] - moved, rest = move.split(' from ') - moved_from, moved_to = rest.split(' to ') - move_list.append((int(moved), int(moved_from), int(moved_to))) - return move_list - - -if __name__ == "__main__": - main() \ No newline at end of file diff --git a/2022/day5/input.txt b/2022/day5/input.txt deleted file mode 100644 index 9833f09..0000000 --- a/2022/day5/input.txt +++ /dev/null @@ -1,512 +0,0 @@ - [V] [C] [M] -[V] [J] [N] [H] [V] -[R] [F] [N] [W] [Z] [N] -[H] [R] [D] [Q] [M] [L] [B] -[B] [C] [H] [V] [R] [C] [G] [R] -[G] [G] [F] [S] [D] [H] [B] [R] [S] -[D] [N] [S] [D] [H] [G] [J] [J] [G] -[W] [J] [L] [J] [S] [P] [F] [S] [L] - 1 2 3 4 5 6 7 8 9 - -move 2 from 2 to 7 -move 8 from 5 to 6 -move 2 from 4 to 5 -move 1 from 4 to 5 -move 1 from 5 to 8 -move 5 from 9 to 2 -move 7 from 1 to 6 -move 7 from 3 to 8 -move 1 from 4 to 6 -move 2 from 5 to 6 -move 6 from 7 to 5 -move 2 from 2 to 4 -move 4 from 5 to 2 -move 10 from 8 to 1 -move 2 from 7 to 4 -move 4 from 2 to 8 -move 2 from 9 to 8 -move 1 from 8 to 4 -move 2 from 4 to 9 -move 5 from 8 to 2 -move 1 from 4 to 6 -move 1 from 8 to 9 -move 1 from 7 to 2 -move 2 from 4 to 2 -move 1 from 7 to 3 -move 13 from 2 to 1 -move 1 from 2 to 4 -move 1 from 2 to 3 -move 2 from 5 to 4 -move 17 from 6 to 4 -move 3 from 4 to 9 -move 14 from 1 to 4 -move 4 from 6 to 8 -move 1 from 9 to 8 -move 23 from 4 to 8 -move 6 from 1 to 7 -move 3 from 1 to 5 -move 1 from 3 to 8 -move 5 from 7 to 8 -move 1 from 3 to 4 -move 1 from 5 to 3 -move 1 from 5 to 1 -move 1 from 3 to 2 -move 1 from 9 to 4 -move 9 from 4 to 9 -move 1 from 1 to 2 -move 11 from 8 to 2 -move 1 from 4 to 5 -move 13 from 2 to 3 -move 7 from 9 to 6 -move 1 from 5 to 6 -move 1 from 5 to 2 -move 1 from 9 to 4 -move 1 from 4 to 9 -move 2 from 8 to 9 -move 1 from 7 to 8 -move 8 from 9 to 1 -move 8 from 1 to 4 -move 4 from 6 to 7 -move 1 from 9 to 4 -move 2 from 3 to 9 -move 1 from 9 to 1 -move 6 from 4 to 1 -move 2 from 1 to 3 -move 22 from 8 to 6 -move 1 from 2 to 5 -move 3 from 7 to 8 -move 15 from 6 to 4 -move 7 from 3 to 7 -move 4 from 6 to 9 -move 2 from 9 to 2 -move 6 from 3 to 5 -move 3 from 9 to 5 -move 5 from 5 to 8 -move 1 from 2 to 1 -move 6 from 8 to 2 -move 1 from 1 to 2 -move 3 from 5 to 3 -move 1 from 7 to 2 -move 4 from 7 to 8 -move 4 from 6 to 1 -move 1 from 5 to 1 -move 4 from 8 to 7 -move 2 from 3 to 2 -move 1 from 1 to 3 -move 15 from 4 to 2 -move 3 from 7 to 3 -move 4 from 7 to 2 -move 1 from 4 to 9 -move 5 from 3 to 8 -move 29 from 2 to 1 -move 1 from 9 to 5 -move 1 from 2 to 1 -move 11 from 1 to 5 -move 1 from 4 to 5 -move 2 from 6 to 3 -move 1 from 3 to 4 -move 16 from 1 to 9 -move 4 from 8 to 4 -move 3 from 6 to 9 -move 1 from 3 to 7 -move 1 from 7 to 3 -move 6 from 1 to 6 -move 3 from 4 to 3 -move 3 from 8 to 5 -move 3 from 1 to 8 -move 3 from 1 to 4 -move 2 from 4 to 9 -move 3 from 6 to 3 -move 15 from 5 to 2 -move 3 from 2 to 3 -move 4 from 2 to 7 -move 2 from 5 to 9 -move 10 from 3 to 6 -move 11 from 9 to 5 -move 2 from 4 to 9 -move 8 from 9 to 4 -move 1 from 9 to 6 -move 7 from 4 to 6 -move 3 from 5 to 8 -move 22 from 6 to 9 -move 4 from 7 to 8 -move 8 from 5 to 8 -move 2 from 4 to 3 -move 1 from 8 to 1 -move 17 from 8 to 3 -move 3 from 3 to 4 -move 13 from 3 to 9 -move 20 from 9 to 7 -move 2 from 2 to 9 -move 19 from 9 to 5 -move 1 from 1 to 4 -move 3 from 2 to 7 -move 4 from 4 to 3 -move 1 from 9 to 8 -move 18 from 5 to 1 -move 1 from 9 to 4 -move 1 from 9 to 7 -move 2 from 4 to 8 -move 1 from 5 to 4 -move 3 from 2 to 7 -move 3 from 3 to 1 -move 2 from 1 to 3 -move 3 from 3 to 8 -move 1 from 4 to 8 -move 6 from 8 to 2 -move 1 from 3 to 9 -move 1 from 3 to 9 -move 10 from 1 to 9 -move 7 from 1 to 7 -move 4 from 7 to 4 -move 29 from 7 to 3 -move 6 from 2 to 9 -move 25 from 3 to 6 -move 5 from 3 to 9 -move 13 from 6 to 9 -move 12 from 6 to 2 -move 1 from 8 to 9 -move 10 from 2 to 6 -move 7 from 6 to 5 -move 20 from 9 to 3 -move 11 from 3 to 6 -move 1 from 7 to 9 -move 2 from 2 to 9 -move 19 from 9 to 2 -move 14 from 6 to 8 -move 4 from 5 to 2 -move 2 from 4 to 6 -move 3 from 5 to 1 -move 13 from 8 to 5 -move 1 from 6 to 1 -move 2 from 4 to 2 -move 8 from 2 to 4 -move 6 from 4 to 7 -move 1 from 9 to 8 -move 2 from 4 to 7 -move 5 from 2 to 4 -move 4 from 4 to 2 -move 10 from 5 to 6 -move 1 from 1 to 7 -move 1 from 5 to 4 -move 1 from 4 to 9 -move 4 from 7 to 8 -move 5 from 1 to 7 -move 1 from 9 to 7 -move 7 from 3 to 2 -move 2 from 5 to 2 -move 8 from 6 to 9 -move 1 from 4 to 6 -move 3 from 7 to 4 -move 5 from 9 to 7 -move 2 from 4 to 3 -move 20 from 2 to 4 -move 2 from 4 to 8 -move 14 from 4 to 2 -move 12 from 7 to 4 -move 8 from 2 to 1 -move 10 from 2 to 4 -move 6 from 8 to 5 -move 1 from 7 to 8 -move 4 from 4 to 3 -move 1 from 3 to 9 -move 1 from 2 to 7 -move 1 from 6 to 8 -move 5 from 3 to 5 -move 1 from 3 to 2 -move 7 from 4 to 5 -move 6 from 1 to 7 -move 5 from 7 to 6 -move 1 from 6 to 5 -move 2 from 7 to 8 -move 1 from 2 to 6 -move 2 from 8 to 2 -move 5 from 5 to 7 -move 6 from 6 to 8 -move 16 from 4 to 9 -move 16 from 9 to 4 -move 11 from 5 to 4 -move 5 from 8 to 3 -move 2 from 5 to 2 -move 14 from 4 to 2 -move 1 from 6 to 3 -move 1 from 6 to 9 -move 1 from 5 to 3 -move 3 from 8 to 2 -move 10 from 4 to 7 -move 5 from 9 to 2 -move 3 from 4 to 7 -move 1 from 1 to 4 -move 3 from 2 to 5 -move 2 from 3 to 7 -move 1 from 4 to 2 -move 18 from 2 to 8 -move 3 from 8 to 4 -move 5 from 3 to 1 -move 1 from 3 to 9 -move 1 from 9 to 3 -move 8 from 8 to 7 -move 2 from 5 to 4 -move 1 from 5 to 6 -move 1 from 2 to 5 -move 1 from 5 to 8 -move 1 from 6 to 9 -move 3 from 2 to 7 -move 27 from 7 to 4 -move 2 from 2 to 4 -move 4 from 8 to 4 -move 1 from 9 to 8 -move 3 from 1 to 6 -move 1 from 3 to 5 -move 3 from 8 to 3 -move 1 from 1 to 4 -move 1 from 8 to 1 -move 3 from 1 to 4 -move 2 from 8 to 2 -move 2 from 6 to 2 -move 8 from 4 to 9 -move 1 from 7 to 1 -move 1 from 5 to 4 -move 1 from 7 to 3 -move 4 from 2 to 7 -move 1 from 8 to 6 -move 8 from 9 to 7 -move 1 from 6 to 3 -move 3 from 3 to 4 -move 37 from 4 to 1 -move 1 from 4 to 5 -move 13 from 7 to 8 -move 6 from 8 to 4 -move 5 from 8 to 3 -move 1 from 7 to 6 -move 4 from 1 to 5 -move 1 from 6 to 5 -move 2 from 8 to 4 -move 32 from 1 to 5 -move 1 from 1 to 4 -move 5 from 3 to 5 -move 1 from 3 to 2 -move 1 from 2 to 9 -move 19 from 5 to 2 -move 1 from 9 to 1 -move 16 from 5 to 1 -move 7 from 5 to 6 -move 1 from 3 to 1 -move 11 from 1 to 2 -move 18 from 2 to 4 -move 1 from 5 to 9 -move 8 from 6 to 1 -move 10 from 2 to 6 -move 7 from 4 to 9 -move 2 from 2 to 1 -move 7 from 4 to 2 -move 5 from 4 to 5 -move 2 from 9 to 6 -move 9 from 6 to 3 -move 5 from 5 to 3 -move 8 from 4 to 9 -move 7 from 9 to 8 -move 4 from 2 to 9 -move 10 from 3 to 1 -move 6 from 8 to 1 -move 2 from 6 to 3 -move 5 from 3 to 8 -move 3 from 2 to 7 -move 1 from 9 to 5 -move 1 from 3 to 5 -move 2 from 7 to 8 -move 1 from 8 to 9 -move 1 from 6 to 1 -move 23 from 1 to 4 -move 2 from 5 to 3 -move 1 from 8 to 2 -move 2 from 8 to 5 -move 2 from 5 to 6 -move 1 from 2 to 7 -move 1 from 7 to 5 -move 4 from 9 to 7 -move 1 from 7 to 5 -move 1 from 3 to 6 -move 3 from 7 to 4 -move 1 from 3 to 8 -move 1 from 4 to 6 -move 6 from 1 to 8 -move 4 from 6 to 4 -move 2 from 9 to 1 -move 1 from 5 to 1 -move 19 from 4 to 2 -move 2 from 9 to 3 -move 1 from 9 to 3 -move 9 from 1 to 8 -move 1 from 5 to 8 -move 1 from 9 to 3 -move 2 from 3 to 9 -move 3 from 8 to 4 -move 1 from 4 to 9 -move 1 from 9 to 5 -move 2 from 3 to 4 -move 6 from 4 to 7 -move 3 from 9 to 5 -move 4 from 4 to 7 -move 1 from 5 to 6 -move 18 from 2 to 7 -move 13 from 7 to 9 -move 3 from 5 to 1 -move 1 from 2 to 1 -move 1 from 6 to 5 -move 3 from 1 to 7 -move 1 from 1 to 5 -move 7 from 9 to 6 -move 8 from 7 to 4 -move 11 from 7 to 6 -move 5 from 9 to 2 -move 17 from 6 to 1 -move 2 from 5 to 1 -move 11 from 8 to 1 -move 20 from 1 to 2 -move 3 from 8 to 1 -move 1 from 9 to 8 -move 1 from 6 to 1 -move 11 from 1 to 7 -move 18 from 2 to 3 -move 12 from 4 to 8 -move 11 from 7 to 3 -move 7 from 2 to 3 -move 2 from 1 to 5 -move 1 from 1 to 3 -move 1 from 8 to 1 -move 1 from 5 to 9 -move 1 from 9 to 6 -move 1 from 8 to 7 -move 1 from 5 to 3 -move 1 from 6 to 7 -move 2 from 8 to 1 -move 8 from 3 to 2 -move 7 from 2 to 9 -move 6 from 8 to 6 -move 1 from 9 to 3 -move 2 from 6 to 4 -move 5 from 9 to 6 -move 7 from 6 to 2 -move 8 from 2 to 9 -move 2 from 1 to 9 -move 2 from 7 to 2 -move 2 from 4 to 8 -move 1 from 2 to 7 -move 25 from 3 to 7 -move 7 from 9 to 7 -move 1 from 2 to 5 -move 1 from 1 to 4 -move 3 from 8 to 1 -move 3 from 1 to 8 -move 3 from 7 to 8 -move 15 from 7 to 3 -move 10 from 8 to 3 -move 1 from 5 to 7 -move 1 from 8 to 5 -move 3 from 9 to 2 -move 1 from 6 to 4 -move 2 from 2 to 7 -move 1 from 2 to 5 -move 14 from 7 to 9 -move 1 from 6 to 2 -move 1 from 7 to 1 -move 1 from 5 to 4 -move 3 from 4 to 3 -move 1 from 7 to 6 -move 1 from 2 to 7 -move 1 from 1 to 2 -move 3 from 9 to 1 -move 1 from 6 to 2 -move 2 from 2 to 6 -move 17 from 3 to 6 -move 1 from 8 to 3 -move 1 from 5 to 4 -move 2 from 7 to 2 -move 9 from 9 to 8 -move 1 from 9 to 3 -move 16 from 3 to 2 -move 1 from 7 to 5 -move 5 from 6 to 5 -move 1 from 1 to 6 -move 1 from 4 to 1 -move 1 from 9 to 3 -move 9 from 8 to 6 -move 3 from 1 to 5 -move 1 from 9 to 1 -move 16 from 2 to 1 -move 2 from 2 to 7 -move 2 from 3 to 9 -move 2 from 7 to 4 -move 2 from 9 to 3 -move 3 from 3 to 5 -move 1 from 4 to 5 -move 1 from 4 to 2 -move 1 from 1 to 7 -move 1 from 7 to 1 -move 1 from 3 to 6 -move 2 from 5 to 1 -move 3 from 6 to 2 -move 2 from 5 to 8 -move 8 from 5 to 4 -move 1 from 5 to 3 -move 1 from 3 to 2 -move 1 from 8 to 3 -move 1 from 3 to 8 -move 4 from 1 to 7 -move 9 from 1 to 7 -move 6 from 1 to 8 -move 3 from 7 to 4 -move 7 from 6 to 7 -move 11 from 4 to 3 -move 2 from 3 to 8 -move 8 from 3 to 8 -move 4 from 6 to 1 -move 1 from 7 to 4 -move 2 from 1 to 2 -move 8 from 7 to 2 -move 1 from 4 to 8 -move 10 from 8 to 2 -move 2 from 6 to 1 -move 1 from 1 to 4 -move 1 from 4 to 8 -move 2 from 1 to 4 -move 6 from 6 to 5 -move 1 from 1 to 9 -move 2 from 6 to 8 -move 1 from 4 to 5 -move 1 from 6 to 9 -move 4 from 8 to 9 -move 1 from 7 to 1 -move 6 from 8 to 6 -move 1 from 6 to 1 -move 1 from 4 to 9 -move 2 from 9 to 5 -move 5 from 5 to 9 -move 8 from 9 to 5 -move 2 from 8 to 5 -move 3 from 6 to 9 -move 8 from 5 to 7 -move 5 from 5 to 6 -move 1 from 9 to 2 -move 1 from 3 to 1 -move 1 from 6 to 7 -move 1 from 5 to 6 -move 24 from 2 to 4 -move 3 from 9 to 7 -move 16 from 4 to 5 -move 2 from 1 to 3 -move 12 from 5 to 6 -move 1 from 9 to 5 -move 4 from 5 to 9 -move 1 from 1 to 6 -move 1 from 5 to 2 -move 2 from 9 to 8 -move 1 from 8 to 1 -move 5 from 4 to 5 -move 2 from 3 to 5 -move 1 from 8 to 3 -move 1 from 1 to 6 -move 3 from 5 to 7 -move 1 from 9 to 1 -move 1 from 2 to 8 \ No newline at end of file diff --git a/2022/day6/day6_part1.py b/2022/day6/day6_part1.py deleted file mode 100644 index c803865..0000000 --- a/2022/day6/day6_part1.py +++ /dev/null @@ -1,3 +0,0 @@ -with open('input.txt', 'r') as f: - stream = f.read() -print([i+4 for i in range(len(stream)) if i < (len(stream)-4) and stream[i] not in stream[i + 1:i + 4] and stream[i + 1] not in stream[i + 2:i + 4] and stream[i + 2] != stream[i + 3]][0]) diff --git a/2022/day6/day6_part2.py b/2022/day6/day6_part2.py deleted file mode 100644 index 055b9ec..0000000 --- a/2022/day6/day6_part2.py +++ /dev/null @@ -1,21 +0,0 @@ -def main(): - with open('input.txt', 'r') as f: - stream = f.read() - - for i in range(len(stream)): - if validate(stream[i:i+14]): - print(i+14) - return - print('No valid marker') - - -def validate(part_string: str) -> bool: - for i in range(len(part_string)): - for j in range(len(part_string)): - if i != j and part_string[i] == part_string[j]: - return False - return True - - -if __name__ == "__main__": - main() diff --git a/2022/day6/input.txt b/2022/day6/input.txt deleted file mode 100644 index a7ce5f7..0000000 --- a/2022/day6/input.txt +++ /dev/null @@ -1 +0,0 @@ -tzltzltthfthtdtstftbfbnffdjjvnvcccnznpndppsvvlnvlnvndntnllwffvwwcpwccssqbqnbbwzbwwfjjscspspfsfvvzjvvmjvjwjljbbbqtbbcqbccdqcdcpddnvnjvvqwwbrbggjllhbbzlblrrrcwwrfrmffgddfsddnqnqpnnmzzwlzwzqwqgqnngnfnvnhvvfnvvszzrbrqbqnbbrsbsvssgngwgqwqbqsbsvbbdvdfvdvbbqlqdlqdllnppwcclwlvwlwjlwwdjjjcschhhmrrnnrznzlnnwmnwnfngghngnpggmrrzrttdbdtddjhdhrrqddnhnjjntjtbtmtffwcfcnfcnfnjjfnjfjjhrhhgfgttgmttltfllfqfnqqcbbrlblrbrcrssrllhddmnddmcdddvttfdfqfmqqcncggczczdccvhcvcjvvgnnqttltcchzhjjwmmqvqtqnqbbhddcqdccnwccttgwwzssncncjjprjjpbprrndnrnrhnhrnhngnhhbjbccpmpmrppjvpjpqjjsvjjhttcclmmqzzlggtqqqgdqqbhhtmmqfmqmwmjwmjmmnsmsvsrrvpvhhtshhhmqmdqqqqlfffwgwhwjjrfjfmfrmffgzzjvzznqqwggcvcnvvcpvpjpjbpbrpbrrzhhcffqqlzzrmzrmzmzrrqdqrqnqrnrnqnrnsrrnjrrgllgqlljldjjmvvqbqhhsmsmddsfdddcmmphhtjhjzhjjjhcjjzppwhwvvdnvnvpnvnlnvnffrjjtzzdqzzngzgqghhmvvgwwqhwhlhvvfzzdpzddtbdtbtvtlvlqlllvvdvsdsslccbscsbbcggldlvvdccdscdsdzsddpggcfggnffpjpnpcncfcqqlvvszzbpbqbcqczcqzcqzqqlrlwwbgglrrbgbhhlbbsffrprtpppdwdhwhbbpssvbvnntbbfnfddmmfcfcjfftbfbdbccngcgjcjtjftjffrwwtwlwddczcnzczpzcpccrqcrczrzcrzzhnntgtqgtgztgzzcpphshwswfwqqnzngzzbpzzpqpzqznzdzmzqqjzzhnhvnnqjnnrdrcctdtppsffzvvwvbbpttsrsspsddfvvfllrtlljpjlplcctthbbgbqgbgmmpwpvvghvhfhwfwcwvwrvwrvvcgccdncddbmbmfmlffgqggrzgzhhzfzdfzfhhzdhzhjzjhhbffrtrjtthssbpspddpttrggdndsnnjwwzrwrvvmqvmvdvhvjvnnqmmhrhrzzzwttnftfddsdfsfjsjcccvhvgvgzvgzvzbvvhwhbbpccfjfllgmlggtbggdsgsmmmnznqnhqhrqhrrtthwhqqvzqvvvqgqffpvptvpvwvbvsscsnnhlnhhzrzjrjrllcffpqpbpsbbflblppqffbqqpttccdgcgdgfdfgdgjddjljpljppdspddflftllhchmcmwcwddrqqsdsswwmwwwjdjvdvwwcgcddmhhqtqvqmvvnffqppnvpphpnnshsmhmdhmdddlnlmnmsnnpttlfttnqnhqnqrnrddplplbpbdpdhppccbnbwwpwzwgwdgdnggcmmtnmnznmzmwmrmtrrjppjgjmggndgnnjzzrczzftztzgzvgvddgmdgmgpmmgjmmnrrmvmnvvhqqggsnnplnlnbbrcbbpphssnqsnspnncfchhvjjdjvjfjddbjbddhlllpdnrhtzhqpphzfbjclncdlrbtzhcwslpnstdvjslnzfrvfdlmpgpfhrqtjvqvjlqgdcjrbjtjrgvbfwjzsvrbmffnhvjqnshvdjbgwmpwlfjznngzpqbvlztnvgvjsnwvhpfwbhfsmjgwwjdrrwbtvpwtzvjfhwrmnrhdsvgpgdsfgndmffqfplsgjrsvztzlznqsrbldbmmhqmjtrzscrbwlpgztlrvllprnhzsvtnvwzmjwqhqpjqhntcrscwcdnwzpvbdczzcmzrmdwthdtszqzftcsfbwfqggpcntfrgwpmjpdzjnczwcjmdjnrqjfwqbznznmcdvzqlpqschnmcfqjjrjwfmqqftfdhdzffvshqbmrgrpvlgqcgsbsngttvcpjswdgrhbblrhjllfbzngqjzzbdwtnlnrbpftvwbmrhvcnntdrbvtrtpcsqdsrvpsgggfpwcbzhwhwmmmmmgjzgdtwnzjdwjfljghbjvjnsgshmdpztnbbrnwfvzhtzqpzttftdmcmqzlnrgncwwtpwqrgmpmwwchwhbbbblcndbsrrqtnztcmqhvdwfcswnswvhqdtqfdrhjgczqvrzqczmnpcgbwntjvlsfrzrrjtsvfzfmbwwsftwqvttpjvbggrlcspnfhwwmrhdbbhdcjvmrhppvcmtmfhszjlcjjsdqfvjttcmffwzfpmjmjzhcrqmhhwzhjlnwphvvhmrbllsvpjljthjndffrdbmdjncnmdtcwfwjdwnrdlvqsbzczlhwrtpnzfwzzwbrqpglgvrjsnsprvwszmlrjcdgzwchmcqrjdlzqfvqwwfszpptprhcfsdfcrnhvhgvcdwgnqzjtmgznltbjjqwzlljrqcmpdncshzvsmvjwlmvtwbtjcgmqfslvwcfqpljzdjmdvqjlztbsbshcwhlvzcmzljvrrhrbzwvthgtnszpcrrdwcmtdncdzlbdscfbhrlqttcfshqrsgvzhlcnvfhppdqvblsznmct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bfhgvfhqlsgdnnrsgghjzjlqfwbbgztdqzbhhwhcwtjwsgstjpzcjjvqbpfpvlqfqshvfzbwmfcwfgqvgmbppfvzgzznzhsqbvzlztsnmnrbgqzbmbhlvqhfncdfcpttgzpvvzdbhvqdtqsblqvrsrnmsfbqhrpvlzffdzptzghvmbmdzjrsqzhqddqm \ No newline at end of file diff --git a/2022/day7/day7.py b/2022/day7/day7.py deleted file mode 100644 index 16225b2..0000000 --- a/2022/day7/day7.py +++ /dev/null @@ -1,25 +0,0 @@ -def main(): - directory_contents = {} - with open('input.txt', 'r') as f: - input_lines = f.readlines() - - line_index = 0 - while line_index < len(input_lines): - if input_lines[line_index].startswith('$ cd'): - if input_lines[line_index][5:] not in ['..', '/']: - directory_contents[input_lines[line_index][5:]] = [] - line_index += 1 - continue - elif input_lines[line_index].startswith('$ ls'): - line_index += 1 - while not input_lines[line_index].startswith('$'): - ... - - -def current_dir_size(dir: str) -> int: - ... - - - -if __name__ == "__main__": - main() \ No newline at end of file diff --git a/2022/day7/input.txt b/2022/day7/input.txt deleted file mode 100644 index e60b95e..0000000 --- a/2022/day7/input.txt +++ /dev/null @@ -1,1087 +0,0 @@ -$ cd / -$ ls -dir fwbjchs -dir hmnpr -dir jtrbrcjl -dir lcgv -dir ldqc -dir vrvl -$ cd fwbjchs -$ ls -154619 wqdlv.mdw -21648 wvbnz -$ cd .. -$ cd hmnpr -$ ls -178623 rftqqsrp.bfm -$ cd .. -$ cd jtrbrcjl -$ ls -dir nmbfwc -dir whqb -$ cd nmbfwc -$ ls -242645 lcgv -256365 wdzw.drg -$ cd .. -$ cd whqb -$ ls -161522 mrqgpv.gsm -48062 vpsgcl.gfh -$ cd .. -$ cd .. -$ cd lcgv -$ ls -dir cthtlwds -dir grldv -dir lnztfr -dir vwhf -dir znmzg -$ cd cthtlwds -$ ls -dir dghvw -dir tfwgg -$ cd dghvw -$ ls -107090 jmj.lzh -$ cd .. -$ cd tfwgg -$ ls -dir ddnfmsjc -252616 fvj -dir gng -dir lcgv -234528 mpb -181198 pzqgf.cjd -dir svvz -$ cd ddnfmsjc -$ ls -dir hwmcsdvt -dir lcgv -$ cd hwmcsdvt -$ ls -208912 wdzw.drg -$ cd .. -$ cd lcgv -$ ls -47252 tnd.ztd -$ cd .. -$ cd .. -$ cd gng -$ ls -44313 pzqgf.cjd -$ cd .. -$ cd lcgv -$ ls -182616 wdzw.drg -$ cd .. -$ cd svvz -$ ls -86968 sqtggfv -33927 vfmltgs -$ cd .. -$ cd .. -$ cd .. -$ cd grldv -$ ls -145761 mrqgpv.gsm -dir wqdlv -$ cd wqdlv -$ ls -96902 jhmsp -157064 mrqgpv.gsm -$ cd .. -$ cd .. -$ cd lnztfr -$ ls -137978 bpq -180941 fvpfmwn -148685 hsg.qgj -865 mrqgpv.gsm -$ cd .. -$ cd vwhf -$ ls -dir bgtgqzz -dir fcwzw -dir lcgv -dir mrlvtb -116134 mrqgpv.gsm -dir wszvqd -$ cd bgtgqzz -$ ls -dir dzpjg -283411 nmbfwc -dir smhhzq -240602 ttlbcssq -$ cd dzpjg -$ ls -75545 cmfw.gsj -189219 lcgv.chq -255580 lqndrsh.szf -175733 mrqgpv.gsm -$ cd .. -$ cd smhhzq -$ ls -137259 thjwcz.qhn -$ cd .. -$ cd .. -$ cd fcwzw -$ ls -59717 tpljg -$ cd .. -$ cd lcgv -$ ls -148881 mrzcdzd.gjt -68671 pzqgf.cjd -242866 slpftp -89945 vpsgcl.gfh -196497 wdzw.drg -$ cd .. -$ cd mrlvtb -$ ls -40003 rfzrwc.zjn -$ cd .. -$ cd wszvqd -$ ls -dir bhhtbv -dir lcpvwdq -$ cd bhhtbv -$ ls -dir fbh -248604 ldscpjmp -dir nmbfwc -$ cd fbh -$ ls -256295 vpsgcl.gfh -$ cd .. -$ cd nmbfwc -$ ls -83799 lcgv.vfc -$ cd .. -$ cd .. -$ cd lcpvwdq -$ ls -dir lwhq -212569 rfzrwc.clp -23957 wdzw.drg -$ cd lwhq -$ ls -240867 fzrwpl.hqd -68771 mzsqgswh -88777 pqtqv.qwz -$ cd .. -$ cd .. -$ cd .. -$ cd .. -$ cd znmzg -$ ls -30277 gltpwzg.gjd -211983 wdzw.drg -$ cd .. -$ cd .. -$ cd ldqc -$ ls -dir dnzfqzwv -dir dvshtm -97119 gdnlwmbf -dir gqb -dir jclb -dir jgbsw -115989 lcgv.hlf -255836 lchqqdh.wrn -dir qtdlb -dir rmljszcj -dir tqwpmw -dir vhdgcsw -$ cd dnzfqzwv -$ ls -dir tqv -$ cd tqv -$ ls -139984 dwhz.nhz -240411 pzqgf.cjd -129386 rnnr -190691 svgwt.mql -$ cd .. -$ cd .. -$ cd dvshtm -$ ls -dir lcgv -96767 mrqgpv.gsm -dir qdmmpq -$ cd lcgv -$ ls -82949 bldf.hwn -$ cd .. -$ cd qdmmpq -$ ls -dir lzgwflt -dir vgrdpbg -$ cd lzgwflt -$ ls -148651 tndbwbh -$ cd .. -$ cd vgrdpbg -$ ls -dir wqdlv -$ cd wqdlv -$ ls -130393 rqjc.dnr -$ cd .. -$ cd .. -$ cd .. -$ cd .. -$ cd gqb -$ ls -dir jtf -dir lvwpqs -212592 mrzcdzd.gjt -70051 tqpwdwm.nzz -dir vznbng -52226 wbsdrsfh.tfw -$ cd jtf -$ ls -232635 lvpccb.dmm -105086 wdzw.drg -$ cd .. -$ cd lvwpqs -$ ls -124821 dmhqlt -265915 mrqgpv.gsm -45481 pzqgf.cjd -$ cd .. -$ cd vznbng -$ ls -42179 nrzcpgvl.jft -17752 tld.ghn -174859 zvqglbw.ppl -$ cd .. -$ cd .. -$ cd jclb -$ ls -dir bnz -dir dtmtvbw -dir hnlrtpbz -dir pbb -dir vhjwtq -dir vpfggv -dir zmflq -$ cd bnz -$ ls -199447 mrzcdzd.gjt -$ cd .. -$ cd dtmtvbw -$ ls -dir bjthn -dir hzlhz -dir zmflq -$ cd bjthn -$ ls -272777 pgqfn.tdd -$ cd .. -$ cd hzlhz -$ ls -50958 lcgv.gvq -$ cd .. -$ cd zmflq -$ ls -207442 rrnwns.zpf -15759 wdzw.drg -$ cd .. -$ cd .. -$ cd hnlrtpbz -$ ls -69788 jhqjs.sdj -219666 jljzp.mhf -137518 jqnfg -108183 shfjz.vnr -130164 vpsgcl.gfh -$ cd .. -$ cd pbb -$ ls -dir wqdlv -dir zmflq -$ cd wqdlv -$ ls -dir fgggwt -dir hrghbhj -dir nmbfwc -dir tgmqnq -146479 vpsgcl.gfh -dir wqdlv -$ cd fgggwt -$ ls -264892 wqdlv.zsp -$ cd .. -$ cd hrghbhj -$ ls -116698 bfwtbg -dir lcgv -92758 pzqgf.cjd -dir tsdjgt -284427 vpsgcl.gfh -229621 wqdlv.pml -dir zfjjncvd -$ cd lcgv -$ ls -30459 mrzcdzd.gjt -dir wqdlv -$ cd wqdlv -$ ls -78475 wdzw.drg -$ cd .. -$ cd .. -$ cd tsdjgt -$ ls -166330 jpfms -16410 tjswm.bqv -$ cd .. -$ cd zfjjncvd -$ ls -59841 mrqgpv.gsm -$ cd .. -$ cd .. -$ cd nmbfwc -$ ls -dir jtn -151403 mmjm -240129 mmsb -206021 nmbfwc.sds -84439 vpsgcl.gfh -dir wqdlv -dir zvnrwfhn -$ cd jtn -$ ls -23555 hmmt.gbb -$ cd .. -$ cd wqdlv -$ ls -69742 jppj.vvg -$ cd .. -$ cd zvnrwfhn -$ ls -242009 lcgv.bds -$ cd .. -$ cd .. -$ cd tgmqnq -$ ls -259985 bzqjt -46410 flsm.szr -dir lcgv -89561 npfmc.vqs -17503 vpsgcl.gfh -73719 wqdlv.gjn -$ cd lcgv -$ ls -dir dzfglmz -177553 ffvzsgz -dir ljt -216443 mrzcdzd.gjt -255381 nmbfwc -dir rplqnt -84061 zmflq.vlw -$ cd dzfglmz -$ ls -220883 dqbcfgfd -$ cd .. -$ cd ljt -$ ls -11842 rfzrwc.hpn -$ cd .. -$ cd rplqnt -$ ls -119893 lszmvzst.zng -$ cd .. -$ cd .. -$ cd .. -$ cd wqdlv -$ ls -dir chnpddzn -272999 hbhwqt.fsl -144546 jvhjnsz -dir ppsm -102615 pzqgf.cjd -dir swdnss -$ cd chnpddzn -$ ls -256977 pzqgf.cjd -dir wqdlv -$ cd wqdlv -$ ls -6565 hlcqgmj -$ cd .. -$ cd .. -$ cd ppsm -$ ls -238358 fvw.bzw -dir ggjnl -265010 mrzcdzd.gjt -201818 rfzrwc -dir ssggblm -$ cd ggjnl -$ ls -45841 nlnrrqf.fwn -$ cd .. -$ cd ssggblm -$ ls -276584 djqb.ngq -18926 lcgv -$ cd .. -$ cd .. -$ cd swdnss -$ ls -dir bmrzhjs -$ cd bmrzhjs -$ ls -269825 mrqgpv.gsm -3162 rdmbdwq.bmv -$ cd .. -$ cd .. -$ cd .. -$ cd .. -$ cd zmflq -$ ls -dir hnrnldw -dir lcgv -dir mpmcghz -dir nbbv -dir qsnfzp -dir tntnjg -dir wqdlv -$ cd hnrnldw -$ ls -102631 wjbbjwtm.vvz -$ cd .. -$ cd lcgv -$ ls -dir dzz -dir hbzzf -dir jncrbhc -205204 lqnrp -dir mzzpfnr -dir nmbfwc -dir rfzrwc -dir rnrmhfz -dir zmflq -$ cd dzz -$ ls -dir cvvdv -226221 nggtqdzn -94641 npmpjnjm.bzg -dir rsdw -dir sjrb -41983 vfdz.ngz -271561 zmflq.zsc -$ cd cvvdv -$ ls -64260 hhqv.tsg -31245 pzqgf.cjd -280268 znjjp -$ cd .. -$ cd rsdw -$ ls -dir lcgv -$ cd lcgv -$ ls -37080 nmbfwc -$ cd .. -$ cd .. -$ cd sjrb -$ ls -233530 mrqgpv.gsm -$ cd .. -$ cd .. -$ cd hbzzf -$ ls -36018 mrqgpv.gsm -$ cd .. -$ cd jncrbhc -$ ls -205345 mrqgpv.gsm -244683 nqpcpt -$ cd .. -$ cd mzzpfnr -$ ls -dir hmjzlr -dir lcgv -dir mczs -dir wqdlv -90391 wqdlv.pdr -144119 zmflq -$ cd hmjzlr -$ ls -268342 svsd.jcd -$ cd .. -$ cd lcgv -$ ls -dir pwhl -dir rfzrwc -$ cd pwhl -$ ls -42795 gvmt -82576 wdzw.drg -$ cd .. -$ cd rfzrwc -$ ls -dir jjl -dir mqp -156985 mrqgpv.gsm -dir wptr -dir wqdlv -$ cd jjl -$ ls -dir jrjjr -104785 nmbfwc -20108 wdzw.drg -$ cd jrjjr -$ ls -243753 hgndlcrv.wbc -$ cd .. -$ cd .. -$ cd mqp -$ ls -142621 cljnbs -$ cd .. -$ cd wptr -$ ls -46279 vjqlvhrh.njr -$ cd .. -$ cd wqdlv -$ ls -104474 vpsgcl.gfh -$ cd .. -$ cd .. -$ cd .. -$ cd mczs -$ ls -186843 mrqgpv.gsm -dir pjm -dir thbwb -$ cd pjm -$ ls -dir wqdlv -$ cd wqdlv -$ ls -201647 sgtt -$ cd .. -$ cd .. -$ cd thbwb -$ ls -146494 mrqgpv.gsm -$ cd .. -$ cd .. -$ cd wqdlv -$ ls -103876 mrqgpv.gsm -$ cd .. -$ cd .. -$ cd nmbfwc -$ ls -dir fgctdds -dir rwgscjbv -$ cd fgctdds -$ ls -205015 bwvshdcz.dpp -$ cd .. -$ cd rwgscjbv -$ ls -242899 rbmtfdhp -$ cd .. -$ cd .. -$ cd rfzrwc -$ ls -dir bnsgzwhn -228624 ffj -dir lcgv -dir rcvwcbfd -268775 vbhsh.nnz -129373 vpsgcl.gfh -68919 wqdlv -dir wqmdw -dir zmflq -153277 zmflq.frv -$ cd bnsgzwhn -$ ls -9892 ltcrrzhb.njc -dir wpwmflr -dir zmflq -$ cd wpwmflr -$ ls -274142 bfj.fbw -dir rfzrwc -dir srnm -$ cd rfzrwc -$ ls -161517 mrqgpv.gsm -dir zbhgwsd -$ cd zbhgwsd -$ ls -43750 vbqmpbcr.zwz -$ cd .. -$ cd .. -$ cd srnm -$ ls -dir rvvtgr -$ cd rvvtgr -$ ls -164604 wzgbzbn -$ cd .. -$ cd .. -$ cd .. -$ cd zmflq -$ ls -184482 mrqgpv.gsm -80280 pzqgf.cjd -183303 zln.tbm -$ cd .. -$ cd .. -$ cd lcgv -$ ls -dir lcgv -dir pqttlp -$ cd lcgv -$ ls -dir bpjzg -$ cd bpjzg -$ ls -99853 wdzw.drg -$ cd .. -$ cd .. -$ cd pqttlp -$ ls -dir bgvhcgfn -45115 mrzcdzd.gjt -248058 qnvhgpw.ddw -112129 rfzrwc -$ cd bgvhcgfn -$ ls -228291 nmbfwc.gqj -$ cd .. -$ cd .. -$ cd .. -$ cd rcvwcbfd -$ ls -dir vtrtt -dir wgp -$ cd vtrtt -$ ls -138009 pzqgf.cjd -dir ztsvzpn -$ cd ztsvzpn -$ ls -51632 vpsgcl.gfh -$ cd .. -$ cd .. -$ cd wgp -$ ls -81030 lcgv.zhv -$ cd .. -$ cd .. -$ cd wqmdw -$ ls -dir zmrdf -$ cd zmrdf -$ ls -dir qqgw -$ cd qqgw -$ ls -58554 gqpqvplc.zvr -$ cd .. -$ cd .. -$ cd .. -$ cd zmflq -$ ls -224544 mrzcdzd.gjt -254976 pzqgf.cjd -$ cd .. -$ cd .. -$ cd rnrmhfz -$ ls -19759 lcgv.stz -$ cd .. -$ cd zmflq -$ ls -22390 nftzlqg.qmp -80148 wqdlv -$ cd .. -$ cd .. -$ cd mpmcghz -$ ls -169324 mrqgpv.gsm -65924 wdzw.drg -$ cd .. -$ cd nbbv -$ ls -115297 bqcrc.prw -58148 pvzv.qwf -dir wqdlv -$ cd wqdlv -$ ls -145268 mrzcdzd.gjt -35745 nmbfwc.hgv -112142 wqdlv -$ cd .. -$ cd .. -$ cd qsnfzp -$ ls -241308 nmbfwc.hmg -$ cd .. -$ cd tntnjg -$ ls -19543 mrqgpv.gsm -667 wqdlv -$ cd .. -$ cd wqdlv -$ ls -dir dqpgtmdl -dir jrqsqrv -189727 mrzcdzd.gjt -dir rfzrwc -208280 vpsgcl.gfh -281557 vwsljgn.mwd -119829 zmflq.hgd -$ cd dqpgtmdl -$ ls -268413 qcw.slb -$ cd .. -$ cd jrqsqrv -$ ls -238387 mvllmjc.wvm -213020 nqp.gdr -157257 nzdmplg.zqh -dir ppwcgc -24914 pzqgf.cjd -dir zjr -dir zmflq -$ cd ppwcgc -$ ls -249714 bsrnnhrr.spq -dir cvnd -$ cd cvnd -$ ls -248610 pzqgf.cjd -$ cd .. -$ cd .. -$ cd zjr -$ ls -224145 smwb.mmz -$ cd .. -$ cd zmflq -$ ls -250519 ftggp -147304 vpsgcl.gfh -238706 wdzw.drg -258323 wqdlv.bjp -dir wqgngf -$ cd wqgngf -$ ls -14302 bdz.jdw -dir jpgfsgd -dir ldwgr -22718 nwfh.nzf -$ cd jpgfsgd -$ ls -dir lcgv -dir qbrwz -$ cd lcgv -$ ls -284229 qhwc.zpq -dir wsjs -$ cd wsjs -$ ls -111635 lcgv -$ cd .. -$ cd .. -$ cd qbrwz -$ ls -199057 gpssftw.wdb -$ cd .. -$ cd .. -$ cd ldwgr -$ ls -260404 gdnpg.vjb -$ cd .. -$ cd .. -$ cd .. -$ cd .. -$ cd rfzrwc -$ ls -dir lmcg -$ cd lmcg -$ ls -32819 sjjztgr.rfj -$ cd .. -$ cd .. -$ cd .. -$ cd .. -$ cd .. -$ cd vhjwtq -$ ls -dir qgqbrv -$ cd qgqbrv -$ ls -176900 gwbnqtn.rnj -$ cd .. -$ cd .. -$ cd vpfggv -$ ls -144809 cmc.srv -117565 nhddq.bqn -dir scw -dir tpmnhdc -dir vvp -71774 wqdlv.gdm -61647 zmflq -174026 zmflq.wzn -$ cd scw -$ ls -2295 bqbsrj.gnc -243386 mfmdqhh.mzl -$ cd .. -$ cd tpmnhdc -$ ls -dir fjwr -dir lcllz -dir nmbfwc -$ cd fjwr -$ ls -133256 pwgtqz.dpm -159987 vpsgcl.gfh -$ cd .. -$ cd lcllz -$ ls -dir flwws -210654 qmbfw.bsv -dir zmflq -$ cd flwws -$ ls -222222 nmbfwc.vhj -$ cd .. -$ cd zmflq -$ ls -235011 jlzfbt.wlb -49525 rfzrwc.fnc -$ cd .. -$ cd .. -$ cd nmbfwc -$ ls -133730 dqdqhvm -dir lcgv -188291 nmbfwc.qhv -110039 wdzw.drg -249996 wqdlv -dir zmflq -dir zppcvq -$ cd lcgv -$ ls -dir wths -$ cd wths -$ ls -120313 jdbtlf.rrn -$ cd .. -$ cd .. -$ cd zmflq -$ ls -124906 dqdcpzh -$ cd .. -$ cd zppcvq -$ ls -112537 mrzcdzd.gjt -$ cd .. -$ cd .. -$ cd .. -$ cd vvp -$ ls -dir fsw -194927 hvlm.pbd -dir nmbfwc -230376 pgsq -$ cd fsw -$ ls -111889 nmbfwc.smt -dir rfzrwc -$ cd rfzrwc -$ ls -282718 gbvss -$ cd .. -$ cd .. -$ cd nmbfwc -$ ls -dir fvh -160971 ngqvztv.hfg -dir rfzrwc -$ cd fvh -$ ls -256956 mrqgpv.gsm -14363 vbvsncs.jjw -172959 wdzw.drg -$ cd .. -$ cd rfzrwc -$ ls -257264 vpsgcl.gfh -$ cd .. -$ cd .. -$ cd .. -$ cd .. -$ cd zmflq -$ ls -10486 lbdtpnps.jhq -118145 rlgjvn.nvf -176390 wdzw.drg -$ cd .. -$ cd .. -$ cd jgbsw -$ ls -dir cfdljgh -214846 dwqdqv.ftq -dir rfzrwc -147094 vpsgcl.gfh -$ cd cfdljgh -$ ls -261471 mrqgpv.gsm -$ cd .. -$ cd rfzrwc -$ ls -dir fcvfw -dir gvqrwgrs -57417 zfqrqv.fvp -$ cd fcvfw -$ ls -279614 wdzw.drg -$ cd .. -$ cd gvqrwgrs -$ ls -dir sgfltf -$ cd sgfltf -$ ls -204207 mstlc.wtj -$ cd .. -$ cd .. -$ cd .. -$ cd .. -$ cd qtdlb -$ ls -dir gjpmcvwp -dir nsjlcmfz -dir wqdlv -$ cd gjpmcvwp -$ ls -dir cjjdzcwm -$ cd cjjdzcwm -$ ls -233873 pdnsrz.vfp -$ cd .. -$ cd .. -$ cd nsjlcmfz -$ ls -53472 nmbfwc -dir qvpj -$ cd qvpj -$ ls -150929 mrzcdzd.gjt -$ cd .. -$ cd .. -$ cd wqdlv -$ ls -dir qccsnjd -$ cd qccsnjd -$ ls -65908 hsrqhn.hjr -267802 zmflq.jdt -$ cd .. -$ cd .. -$ cd .. -$ cd rmljszcj -$ ls -dir jnstrbj -172566 nbtszsgl -dir wqdlv -$ cd jnstrbj -$ ls -232158 fgccmchh.wqg -236339 mrqgpv.gsm -281875 rfzrwc.sfd -$ cd .. -$ cd wqdlv -$ ls -58492 wdzw.drg -213853 wqdlv.zlz -$ cd .. -$ cd .. -$ cd tqwpmw -$ ls -92747 pzqgf.cjd -$ cd .. -$ cd vhdgcsw -$ ls -125104 crfw.sfv -dir flhbhzlt -139949 mrqgpv.gsm -dir rfzrwc -dir rnz -97174 zmflq.vpn -$ cd flhbhzlt -$ ls -282258 mrzcdzd.gjt -$ cd .. -$ cd rfzrwc -$ ls -dir lcgv -$ cd lcgv -$ ls -dir dlpng -dir glqrj -178245 lcgv -106863 nmbfwc.fgr -$ cd dlpng -$ ls -195950 rfzrwc -$ cd .. -$ cd glqrj -$ ls -248909 pzqgf.cjd -34214 vpsgcl.gfh -$ cd .. -$ cd .. -$ cd .. -$ cd rnz -$ ls -dir chfccv -dir cmsccq -dir zmflq -$ cd chfccv -$ ls -13688 mrqgpv.gsm -162142 vpsgcl.gfh -$ cd .. -$ cd cmsccq -$ ls -94122 dzpsltth -190025 rfzrwc -dir twqt -12230 wgghbcz.tph -60111 wqdlv -$ cd twqt -$ ls -109250 wdzw.drg -$ cd .. -$ cd .. -$ cd zmflq -$ ls -174075 wdzw.drg -$ cd .. -$ cd .. -$ cd .. -$ cd .. -$ cd vrvl -$ ls -dir pnfv -210089 rfzrwc -dir stcfmz -$ cd pnfv -$ ls -183315 rhmztnnh -$ cd .. -$ cd stcfmz -$ ls -115637 lcgv \ No newline at end of file diff --git a/2022/day8/__pycache__/load_map.cpython-311.pyc b/2022/day8/__pycache__/load_map.cpython-311.pyc deleted file mode 100644 index 29e1c6a..0000000 Binary files a/2022/day8/__pycache__/load_map.cpython-311.pyc and /dev/null differ diff --git a/2022/day8/day8_part1.py b/2022/day8/day8_part1.py deleted file mode 100644 index ea75e7e..0000000 --- a/2022/day8/day8_part1.py +++ /dev/null @@ -1,43 +0,0 @@ -import load_map - - -def main(): - tree_map = load_map.load_map() - - visible_from_outside_count = 0 - not_visible_from_outside_count = 0 - for i in range(len(tree_map)): - for j in range(len(tree_map)): - if i == 0 or i == len(tree_map)-1 or j == 0 or j == len(tree_map)-1: - visible_from_outside_count += 1 - elif (max(tree_map[i][:j]) < tree_map[i][j] - or max(tree_map[i][j+1:]) < tree_map[i][j] - or max(get_column_until_i(tree_map, j, i)) < tree_map[i][j] - or max(get_column_from_i(tree_map, j, i+1)) < tree_map[i][j]): - visible_from_outside_count += 1 - else: - not_visible_from_outside_count += 1 - - print(f"Visible from outside: {visible_from_outside_count}\nNot visible from outside: {not_visible_from_outside_count}") - - -def get_column_until_i(lst: list[list[int]], column_id: int, end_i: int) -> list[int]: - column: list[int] = [] - for i in range(end_i): - for j in range(len(lst[i])): - if j == column_id: - column.append(lst[i][j]) - return column - - -def get_column_from_i(lst: list[list[int]], column_id: int, begin_i: int) -> list[int]: - column: list[int] = [] - for i in range(begin_i, len(lst)): - for j in range(len(lst[i])): - if j == column_id: - column.append(lst[i][j]) - return column - - -if __name__ == "__main__": - main() \ No newline at end of file diff --git a/2022/day8/day8_part2.py b/2022/day8/day8_part2.py deleted file mode 100644 index 96c670e..0000000 --- a/2022/day8/day8_part2.py +++ /dev/null @@ -1,47 +0,0 @@ -import load_map - - -def main(): - tree_map = load_map.load_map() - - highest_score = 0 - - for i in range(len(tree_map)): - for j in range(len(tree_map[i])): - if i == 0 or j == 0: - continue - current_tree = tree_map[i][j] - current_tree_score = 1 - direction_count = 0 - for k in range(i-1, -1, -1): - direction_count += 1 - if tree_map[k][j] >= current_tree: - break - current_tree_score *= direction_count - direction_count = 0 - for k in range(j-1, -1, -1): - direction_count += 1 - if tree_map[i][k] >= current_tree: - break - current_tree_score *= direction_count - direction_count = 0 - for k in range(i+1, len(tree_map)): - direction_count += 1 - if tree_map[k][j] >= current_tree: - break - current_tree_score *= direction_count - direction_count = 0 - for k in range(j+1, len(tree_map[i])): - direction_count += 1 - if tree_map[i][k] >= current_tree: - break - current_tree_score *= direction_count - - if current_tree_score > highest_score: - highest_score = current_tree_score - - print(f"Highest score: {highest_score}") - - -if __name__ == "__main__": - main() \ No newline at end of file diff --git a/2022/day8/input.txt b/2022/day8/input.txt deleted file mode 100644 index f9dbafd..0000000 --- a/2022/day8/input.txt +++ /dev/null @@ -1,99 +0,0 @@ -131210223122034201100050105424523044130411422315401641602244345313413050154142511210232230010113310 -311013023144242433041451004544121455454620031355066511426335055503430442412031400134421222323200231 -000000231023234100542524312250523355415365261251616530425625664621215121033040340113311421124403120 -112300444001303041405153523535126435661025243650554326352462442340031244522333142343310234422042101 -011212224431121423533535502254210263641435632425025530513616353113250430340323201235001322302202112 -202112313203021131220031503364123020251021060003210224226552235425544614111231232422312141400320413 -200444200302403233024104523503202601044223254222154626546510545561110210263213430521241312421430303 -004102313211311304304014024303123532011445320262467355722501012602644242025103522053013251103111002 -304431411242103200225521661431265142636476475774766762762162363612154012423154144521032044323220414 -431010040140112455335030032360262556456443775453334565671317716550430136651202313511214502241202330 -043110240102454224516544224630616266622151633641416574141573472553733643035156556442540112231022330 -344001014540504225063305264264244355672617755344543332512133532145451255143634431525512440433123411 -113143353104203351103602240424523453451134364517415112721516225167142625124311653430211020140140033 -342424105441510440330522410035715716774467613477463165551222537127247464353412121551250032130221402 -410022504110015140563646535637544514224772163251875687177773617131666312426516653364620212210230313 -211041303415212543246450027775344644111513854625668347224721545553312454276112266113006550101452023 -122004120501250326115204667575557541115833886847258462846234567626374111773571244513654010011342043 -301350253554662030333624245656331336684563833452867366254385562353677252735134322645443400000505332 -245553522153032254411763514675764155633476526675325578425443428557445775637465473664541400534333232 -322442130433125464663414766715267753434324555463784727253433653632683735371446657522664436422521413 -331053445014305402543221122137356667287622582365352535357653444332458554753476126241266505611211314 -132305431204423645643332442378265875383382785757384646688636277356473225215656144464631013404513545 -053434505352362212362322254526384368455578549563664455533528348238256867477226167554313140041401143 -203253201234236243775741122764852566323853963388779975599397567878847548722235622474163122662031025 -104312526333250166615172668583238338723855457693768963653558894638325372838152126473716643303600351 -300033325433641325623235156626436335535335388847464645964634799646746246766834574361166125456122351 -120451143220054517417432222372537276354686677646995668437869779369928258788534513761754512104013333 -533230405632016226763328844653255879987575353774339563955877645966846826356373371671142605624114450 -344214406630075321522734573335883369387497369848437466643758736756744863635423414516662160242011015 -153451326406137727666257774235355975796748378956899755978495944398847342278543532717554136340636511 -024120564062654627732368525228793638475545556576899665765756673653534943354538526752326643260141204 -412203404021155532277533544576338345978848669679757658576464434458866475384364264335343563643142455 -524002156645642574176682747734737558688944465667846776898785795455858947565382387667331113015066451 -113326321336515741227873667767747863748957949856994566445966947557698763647356484312144362112035661 -434431122332456363585644236338986386449886459969898794477784876859584934744448487422233247433555125 -554200316641747712525646475695585944855767864476587785657648489858488643964822385635771521136623046 -052645555643364326224256887465763984499555456786655996459854588687984483443425342327437117204051333 -324343644132162478234438235893544695988896887697765955598567945698759463346462838746232654576440215 -462521542732624633374484345633767949856985955975898956868594588984946798839592836667471162150441636 -304026636645461478734587878689834446685557768558895888866986985488496437548446368538251171154630512 -101552533162346275323229586354898455686576855758557778659698597964984437888644223388226555216163411 -226105531714231626224846935734356584745868996975697659897867984899744976774696753265736467266365363 -545055625455625875447559864667957979647968997958989658678889877465465468549376486535366137522210053 -232635236714655674743537653457749846596956975956766868889657789549747795675485857275755452342405631 -336205405746366588226663467669498957868656755776686987887868569798659876543375846338247764415355462 -155141051431316677636748574867789558675986588998679878868759877859999565576663475662435765647005340 -232654031116753272825747668968554669668677998669769697669576866955596675964889624528726432263222616 -046125447675236746223768668449879754576588858988996889696887777774597744733788336362244612637553514 -332536552224754343576649855595666484566675788668896786768988988769569579999834385254427632624650030 -460234671543372887673258495575749597595556689798666968989999596584956587675793948224673776637134104 -542551244113357255333348985978787695699886688996687688989678979668986898375478542858365611723122044 -436025232763148825472748645398546496988875698898869977888888759686766658866855938347566311743605100 -041352435563335243486289834394558775588869568696989689688668679659674985985749374752633143335411605 -645651613323411838844847964446478646777866888967786698987886597984667558653798334378662326523323316 -453251236357514443523673467349998744667597789678969978697885696567487655374593857785247555435556045 -125626067513221885878857759866589459898567986669876767888879686774468986669574866876872256777244651 -061632634136353483585356796789964457467578899876878869685969688887694989435735523286834312755525066 -340540044551242754354545465975657758685657898679669667967695977988789866474643553377742333237366424 -263036352242131347425624853533685546887657969789867597887875857754448643936644634734681251565046213 -521221014252416228623283758687657746455765599789696566599868586857544488568349257532612223352106620 -551056515565333357773577346794385876469668655769579779597857875875996655775847823478875155335563305 -033061351361131165452262574439975544867848695885675877665879558695985696596744556573716376424303526 -051413453164367157546735796993358565449465886965769896875794786968869649574645557564453516434340036 -522012306661675468522365554866664944774645598595765956997799788597559834845664822564673263773400310 -303552112356652526736235234953975468449454679549576957655985777498534633999648453476132767604136505 -430122433512263557743477259647593668744879856557445598497869544969574539864264546361414462664221411 -454611134331624353887744383937939357467695869797758446748645646757337474547364356834125123550540011 -205311422445771735787735535567487687866565989949866754567798798789335594675342524621173252621030620 -104546314105111141478387738596677754347769889645474649778444486556868546667547447347454232412330210 -211510511334467714212764237753489789395879446757548685444899995947477635333458277512623242566130511 -424514361505346363172223743443943549786984455999479779995888784953977545326775458231326323010233504 -533506406351652124743874362238244995393575576558499944857439678937793742537382237144513564254651535 -353553630060426172733685862388329358887865467969479496565936757634945866336662814247313410506123210 -513043225146416126342738452268474836363669357555484378683836437894548678424787336776674656521041540 -244212015566607562363563332245262634763988943955763374435446957788627758456361246547173556634433112 -120250204244540161453135477576577584679685399997348333875938895345463364665351151547550433420451010 -255032316662364526536463566477643566873988833997886594683996985547474224255612136321352552052105402 -104213510451031021331446321843388442357338856338535749438457984676336446257657625355006562000544113 -541445315342554104332147175678875788872263746578533386785725742286747757363143223363002242403240300 -250054145114114250444475636452277673763367766534832262225326442862356536367112741723425324561325551 -333553132316232331166236712324478868545457256543258752567822364684454281563652476110466630243545012 -105553252451444255251516625337126655486536656548634366772767853646345616517533725655446161145113520 -025500320531252635012635251245524534532874583455824435258654245466851271721413732103556450032134212 -122200331203513436340117775373456645476436746876327282863778274541722364747346544343564664345130314 -441320433033461423032344434231635142515424736857357883276527554723561743647654233055512312302104530 -204042200400054122313353457757245116453332283484837768668273767612521361442530615235236222154004311 -221131430533350565006640022453717233151527675542578563343653736225637243741111121060442013041415121 -143234105412111133566044252147564714332714531116676347152755116543123447451004602504145444453253433 -320324355203321243353463365121412173726252341762654343152225445674136341343221112445214335524423100 -202300215012154413506542142320154422415625511216416742722732625443456234050601116134422203301324102 -101234204150414100204253404415020535764151322156246545763562327134761563456554466111402435010443123 -431241014215100150231323511544033066474456542763733572523364653251210236631153343300102203501444131 -042113314231102110430451540516134616441273312433773513644616643153262013464225504105041102141121134 -011110441120300210525243055356613232510501653115647342112643545365615664665363430033144102220342002 -022302231313301100120453535411263110120014430464665351336004360420564432406415043521343230142324012 -113120323401112034331301531555663250242545635553155553026665545501304141205024555331305404432131422 -012114144232442305005303300503446534353541113202335113010041055013513101112435052423113214420112332 -230302124240141434221315223103536661161244640554266246312142632216301114101010004305311113412410032 -023121121202444024012413530551503240563056005135401560566653254102253143503152511431441042423320132 \ No newline at end of file diff --git a/2022/day8/load_map.py b/2022/day8/load_map.py deleted file mode 100644 index 6cf9fe5..0000000 --- a/2022/day8/load_map.py +++ /dev/null @@ -1,13 +0,0 @@ -def load_map() -> list[list[int]]: - with open('input.txt', 'r') as f: - puzzle_input = f.read() - - tree_map: list[list[int]] = [] - - lines = puzzle_input.split('\n') - for i in range(len(lines)): - tree_map.append([]) - for j in range(len(lines[i])): - tree_map[i].append(int(lines[i][j])) - - return tree_map \ No newline at end of file diff --git a/2022/day9/day9_part1.py b/2022/day9/day9_part1.py deleted file mode 100644 index cd7c2ea..0000000 --- a/2022/day9/day9_part1.py +++ /dev/null @@ -1,99 +0,0 @@ -def main(): - with open('input.txt', 'r') as f: - head_moves = f.readlines() - head_moves = [move.split() for move in head_moves] - - head_pos, tail_pos = [0,0], [0,0] - pos_list = [] - for move in head_moves: - pos_list.append(tuple(tail_pos)) - if move[0] == 'U': - for i in range(int(move[1])): - head_pos[1] += 1 - if validate_pos(head_pos, tail_pos): - pos_list.append(tuple(tail_pos)) - continue - if head_pos[0] == tail_pos[0]: - tail_pos[1] += 1 - pos_list.append(tuple(tail_pos)) - elif head_pos[0] == tail_pos[0] + 1: - tail_pos[1] += 1 - pos_list.append(tuple(tail_pos)) - tail_pos[0] += 1 - pos_list.append(tuple(tail_pos)) - elif head_pos[0] == tail_pos[0] - 1: - tail_pos[1] += 1 - pos_list.append(tuple(tail_pos)) - tail_pos[0] -= 1 - pos_list.append(tuple(tail_pos)) - elif move[0] == 'D': - for i in range(int(move[1])): - head_pos[1] -= 1 - if validate_pos(head_pos, tail_pos): - pos_list.append(tuple(tail_pos)) - continue - if head_pos[0] == tail_pos[0]: - tail_pos[1] -= 1 - pos_list.append(tuple(tail_pos)) - elif head_pos[0] == tail_pos[0] + 1: - tail_pos[1] -= 1 - pos_list.append(tuple(tail_pos)) - tail_pos[0] += 1 - pos_list.append(tuple(tail_pos)) - elif head_pos[0] == tail_pos[0] - 1: - tail_pos[1] -= 1 - pos_list.append(tuple(tail_pos)) - tail_pos[0] -= 1 - pos_list.append(tuple(tail_pos)) - elif move[0] == 'R': - for i in range(int(move[1])): - head_pos[0] += 1 - if validate_pos(head_pos, tail_pos): - pos_list.append(tuple(tail_pos)) - continue - if head_pos[1] == tail_pos[1]: - tail_pos[0] += 1 - pos_list.append(tuple(tail_pos)) - elif head_pos[1] == tail_pos[1] + 1: - tail_pos[0] += 1 - pos_list.append(tuple(tail_pos)) - tail_pos[1] += 1 - pos_list.append(tuple(tail_pos)) - elif head_pos[1] == tail_pos[1] - 1: - tail_pos[0] += 1 - pos_list.append(tuple(tail_pos)) - tail_pos[1] -= 1 - pos_list.append(tuple(tail_pos)) - elif move[0] == 'L': - for i in range(int(move[1])): - head_pos[0] -= 1 - if validate_pos(head_pos, tail_pos): - pos_list.append(tuple(tail_pos)) - continue - if head_pos[1] == tail_pos[1]: - tail_pos[0] -= 1 - pos_list.append(tuple(tail_pos)) - elif head_pos[1] == tail_pos[1] + 1: - tail_pos[0] -= 1 - pos_list.append(tuple(tail_pos)) - tail_pos[1] += 1 - pos_list.append(tuple(tail_pos)) - elif head_pos[1] == tail_pos[1] - 1: - tail_pos[0] -= 1 - pos_list.append(tuple(tail_pos)) - tail_pos[1] -= 1 - pos_list.append(tuple(tail_pos)) - - pos_set = set(pos_list) - pos_list = list(pos_set) - print(len(pos_list)) - - #print(f"Repeated positions: {pos_count}") - - -def validate_pos(h: list[int], t: list[int]) -> bool: - return -2 < h[0] - t[0] < 2 and -2 < h[1] - t[1] < 2 - - -if __name__ == "__main__": - main() \ No newline at end of file diff --git a/2022/day9/input.txt b/2022/day9/input.txt deleted file mode 100644 index d41a63d..0000000 --- a/2022/day9/input.txt +++ /dev/null @@ -1,2000 +0,0 @@ -R 1 -U 2 -R 1 -L 2 -D 2 -U 1 -R 2 -U 1 -L 2 -U 1 -D 2 -R 1 -D 1 -L 1 -U 2 -D 2 -L 2 -D 1 -U 2 -D 2 -L 1 -U 1 -L 2 -D 2 -U 2 -L 1 -U 2 -L 1 -R 2 -U 1 -L 1 -R 2 -D 1 -U 2 -R 1 -U 1 -R 2 -U 1 -R 2 -U 1 -D 1 -U 1 -D 1 -L 2 -D 2 -R 1 -U 1 -R 1 -U 1 -L 1 -U 1 -D 2 -R 2 -D 2 -L 2 -U 2 -R 1 -D 1 -U 1 -D 2 -R 1 -D 2 -L 2 -R 2 -L 1 -U 1 -L 2 -D 2 -L 2 -D 1 -R 1 -L 2 -D 2 -R 1 -L 1 -R 1 -D 1 -R 1 -D 2 -L 2 -U 1 -D 2 -R 2 -D 1 -U 1 -L 1 -D 1 -U 2 -R 1 -U 1 -L 2 -U 1 -L 1 -U 2 -L 2 -D 2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 11 -U 5 -L 12 -U 5 -R 14 -L 10 -R 6 -D 3 -L 13 -U 6 -R 10 -D 10 -U 9 -D 3 -R 7 -L 13 -R 15 -U 6 -L 13 -U 11 -D 9 -L 7 -R 8 -U 6 -R 12 -U 2 -L 8 -U 10 -D 11 -U 14 -R 3 -L 15 -U 9 -L 2 -U 2 -D 11 -L 11 -R 3 -D 14 -U 3 -L 1 -U 2 -D 12 -L 5 -R 5 -D 10 -L 16 -R 4 -U 3 -L 6 -R 9 -L 7 -R 2 -U 15 -R 6 -L 12 -D 16 -L 16 -D 15 -U 12 -L 6 -D 9 -U 8 -L 10 -D 11 -U 4 -D 12 -U 7 -D 14 -U 1 -D 10 -R 10 -D 14 -L 5 -D 6 -R 8 -L 16 -U 7 -L 12 -R 13 -L 11 -D 12 -R 5 -D 11 -L 5 -R 4 -D 15 -L 13 -D 10 -R 2 -L 16 -D 14 -R 15 -D 11 -U 2 -D 12 -L 11 -D 1 -R 5 -D 6 -U 13 -L 10 -R 1 -U 10 -D 12 -L 10 -D 10 -R 11 -L 10 -D 11 -L 3 -R 11 -D 12 -L 6 -U 2 -L 10 -D 9 -L 11 -U 12 -D 14 -L 6 -U 16 -D 2 -L 2 -D 14 -U 7 -R 12 -D 14 -L 4 -U 3 -R 16 -D 2 -L 5 -R 10 -L 1 -R 11 -L 14 -D 3 -L 17 -D 4 -U 1 -R 8 -D 8 -L 5 -U 1 -L 13 -D 15 -U 17 -L 1 -D 14 -U 4 -R 1 -U 2 -D 14 -R 10 -U 14 -D 17 -R 10 -U 13 -D 12 -U 8 -L 11 -U 17 -R 12 -U 6 -D 8 -R 10 -U 16 -D 4 -R 3 -D 3 -U 4 -L 3 -U 5 -R 16 -L 5 -R 16 -D 17 -R 12 -L 11 -R 13 -U 12 -L 8 -R 5 -D 6 -U 16 -L 16 -D 2 -L 11 -D 1 -R 1 -D 14 -R 15 -L 6 -U 14 -R 12 -D 11 -L 9 -U 6 -L 11 -D 15 -U 17 -L 1 -U 3 -L 6 -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-L 17 -D 13 -U 8 -D 11 -R 13 -L 3 -D 2 -U 14 -R 1 -U 10 -R 11 -D 16 -L 10 -R 17 -U 7 -L 13 -R 3 -L 18 -R 5 -U 7 -L 12 -D 4 -U 5 -L 17 -R 18 -L 4 -R 19 -L 12 -U 17 -R 2 -L 11 -R 9 -D 16 -R 19 -L 18 -U 11 -D 4 -R 13 -L 18 -U 13 -R 19 -D 3 -R 10 -L 3 -R 5 -D 2 -R 2 -L 18 -D 15 -R 19 -L 5 -D 4 -U 5 -R 12 -D 15 -L 13 -R 16 -U 16 -L 6 -U 12 -L 8 \ No newline at end of file diff --git a/README.md b/README.md deleted file mode 100644 index 9f46676..0000000 --- a/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# Advent of Code -## Solutions for the AoC Challenges -### They might not be the best solutions but they work and that's the important part of a coders job :xdd: - ---- -## Languages used by days: -### 2022 -| Language | Days | -|----------|------------------| -| Python | 1, 2, 4, 5, 6, 8 | -| C# | 3 | \ No newline at end of file