Bladeren bron

day 13 easy peasy

metya 4 jaren geleden
bovenliggende
commit
b22c93face

+ 8 - 0
day13_transparent_origami/Cargo.toml

@@ -0,0 +1,8 @@
+[package]
+name = "day13_transparent_origami"
+version = "0.1.0"
+edition = "2021"
+
+# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+
+[dependencies]

+ 921 - 0
day13_transparent_origami/day13.txt

@@ -0,0 +1,921 @@
+994,18
+1014,343
+84,406
+219,849
+570,488
+575,395
+387,213
+904,382
+676,479
+1028,437
+500,123
+202,735
+716,315
+1153,822
+197,397
+678,154
+1104,285
+1041,799
+262,159
+925,543
+1193,299
+918,159
+1170,826
+1181,889
+938,9
+843,481
+5,480
+95,416
+944,831
+853,285
+276,108
+435,717
+616,383
+766,893
+863,611
+442,521
+5,446
+272,26
+1146,876
+244,845
+117,747
+457,397
+336,235
+249,169
+612,443
+251,693
+67,333
+376,840
+16,719
+1190,617
+95,857
+955,511
+984,180
+134,613
+413,145
+1141,416
+681,830
+162,308
+411,70
+1041,239
+184,382
+460,791
+798,79
+1161,429
+238,450
+649,296
+445,53
+616,495
+244,519
+669,781
+15,105
+157,296
+411,824
+713,450
+922,311
+373,173
+5,190
+1156,347
+1262,392
+441,656
+984,744
+810,123
+216,1
+395,185
+930,893
+669,864
+934,600
+160,121
+1170,628
+713,562
+512,290
+1058,618
+1294,719
+910,683
+338,661
+910,298
+172,547
+694,495
+1041,95
+875,717
+269,95
+902,385
+599,737
+825,693
+1232,848
+1138,235
+887,640
+1066,845
+13,47
+1272,511
+622,289
+1190,277
+1148,586
+776,3
+780,271
+713,239
+649,25
+107,513
+35,799
+825,84
+363,565
+609,621
+1250,708
+1121,605
+401,668
+306,810
+880,635
+628,98
+885,504
+952,694
+1116,254
+80,98
+947,351
+1067,152
+406,270
+1059,693
+1102,238
+785,30
+232,311
+1232,64
+994,876
+1133,429
+1260,330
+524,386
+167,324
+28,393
+132,516
+1305,296
+72,698
+385,254
+475,477
+587,287
+1049,168
+142,64
+172,235
+1002,679
+430,515
+741,593
+528,289
+768,266
+716,260
+910,235
+1305,704
+870,399
+1146,18
+1077,751
+281,53
+830,164
+306,35
+142,127
+610,880
+480,705
+1113,397
+257,51
+734,46
+649,598
+300,322
+1058,52
+913,843
+638,175
+1200,893
+1158,276
+1131,346
+1066,729
+669,47
+55,269
+1141,362
+774,208
+387,661
+842,555
+1181,617
+84,488
+85,301
+356,277
+196,297
+152,637
+274,221
+423,640
+1267,283
+1116,444
+412,854
+256,690
+656,240
+1278,737
+90,65
+522,516
+639,789
+527,351
+445,343
+576,848
+408,660
+1124,339
+641,113
+890,354
+239,611
+141,768
+1131,122
+413,749
+276,142
+937,534
+1133,1
+1148,296
+1086,483
+5,704
+706,142
+311,339
+915,185
+80,576
+103,294
+840,767
+928,607
+45,595
+710,714
+902,770
+236,325
+947,187
+1180,386
+1156,464
+251,201
+452,436
+1056,7
+214,292
+162,596
+415,425
+1297,864
+858,21
+922,235
+448,436
+632,292
+1156,99
+1158,637
+425,106
+785,478
+595,9
+1275,203
+971,28
+1255,269
+813,598
+1034,752
+974,222
+773,501
+1186,873
+788,378
+246,621
+1036,221
+50,330
+1118,225
+944,887
+843,654
+892,688
+10,170
+624,327
+59,325
+796,404
+560,583
+634,158
+430,820
+361,771
+1004,84
+848,732
+1020,577
+570,630
+951,255
+231,702
+186,555
+239,835
+177,270
+626,617
+597,2
+1068,488
+70,879
+939,507
+997,781
+202,383
+1174,124
+142,290
+1086,820
+763,269
+1246,383
+276,451
+308,215
+1232,512
+594,442
+1068,157
+1240,15
+22,451
+1017,729
+788,516
+35,95
+897,609
+189,605
+267,824
+701,299
+0,395
+447,163
+900,434
+691,691
+1062,270
+758,288
+1148,308
+902,124
+880,596
+796,490
+492,596
+470,319
+874,343
+535,275
+110,449
+894,2
+798,736
+1278,157
+932,786
+1226,712
+216,893
+186,714
+457,53
+1265,299
+1251,549
+959,688
+974,235
+631,861
+1161,653
+895,835
+59,9
+686,648
+1200,449
+956,602
+149,494
+234,92
+328,296
+872,757
+910,659
+353,136
+206,609
+43,171
+470,799
+246,385
+610,14
+669,113
+527,95
+1074,617
+1110,737
+726,879
+1069,749
+701,621
+773,119
+835,865
+1049,280
+567,374
+447,843
+1287,879
+1233,501
+743,822
+1124,180
+621,165
+1047,49
+681,136
+171,276
+753,240
+1064,621
+108,294
+688,157
+557,218
+149,429
+1230,268
+576,325
+616,368
+996,784
+534,3
+1092,175
+850,444
+731,28
+1081,838
+1022,78
+392,63
+383,849
+728,401
+669,847
+441,238
+415,835
+937,165
+154,99
+618,868
+764,294
+1012,893
+853,53
+569,581
+1146,856
+261,589
+1071,59
+994,170
+619,169
+20,747
+291,259
+864,238
+505,848
+177,449
+311,789
+97,228
+1091,717
+691,203
+65,502
+242,488
+1043,233
+1156,547
+1266,213
+525,49
+54,42
+974,683
+887,752
+1280,556
+1260,623
+775,619
+984,296
+256,204
+296,255
+1230,57
+397,101
+186,443
+1066,273
+246,273
+1064,837
+316,101
+569,761
+341,702
+570,264
+780,67
+341,192
+759,121
+536,208
+582,151
+1086,411
+512,736
+430,635
+78,288
+80,823
+1230,161
+1071,649
+1044,659
+1243,633
+90,887
+773,53
+1104,443
+443,609
+753,228
+1168,255
+218,175
+579,649
+564,719
+393,838
+304,292
+954,277
+1004,35
+200,157
+1034,108
+622,597
+246,572
+1299,527
+1094,893
+874,712
+108,495
+552,288
+1168,527
+1173,512
+634,606
+1056,289
+910,605
+713,892
+1092,742
+629,830
+678,227
+514,404
+1207,600
+1287,127
+186,180
+559,702
+213,600
+818,596
+33,640
+542,266
+13,296
+1290,411
+736,268
+339,82
+1011,511
+363,777
+1036,1
+129,617
+11,866
+436,103
+1146,756
+1052,448
+587,561
+194,254
+1302,211
+1076,92
+1250,583
+22,555
+955,383
+728,679
+393,56
+574,268
+171,724
+1138,224
+1056,887
+982,843
+470,751
+219,717
+649,89
+567,163
+957,382
+184,738
+574,71
+1047,497
+1153,192
+863,843
+318,211
+669,270
+348,35
+366,7
+949,837
+875,177
+269,640
+452,10
+338,618
+735,395
+713,655
+55,848
+1220,569
+693,476
+880,515
+609,273
+306,84
+199,298
+440,602
+137,605
+1267,723
+38,383
+208,238
+457,192
+140,107
+810,99
+371,507
+995,759
+157,192
+300,154
+607,621
+721,502
+1238,698
+1290,288
+50,527
+59,549
+335,618
+154,795
+261,676
+1170,787
+452,603
+291,351
+164,876
+1049,589
+366,455
+964,343
+1052,446
+567,420
+944,63
+90,271
+818,242
+1290,362
+110,1
+624,567
+243,152
+137,289
+528,605
+925,450
+544,585
+0,499
+1113,702
+430,298
+691,169
+740,45
+55,401
+107,625
+336,211
+530,827
+676,736
+400,298
+1064,273
+140,266
+199,596
+276,752
+843,240
+1288,443
+1168,830
+537,327
+1091,625
+172,323
+77,841
+738,823
+728,493
+1233,841
+1074,773
+569,593
+78,64
+1161,150
+474,831
+475,865
+904,737
+416,2
+688,289
+547,401
+80,621
+785,497
+746,7
+1069,637
+1297,296
+932,183
+783,635
+977,805
+241,749
+162,296
+594,260
+678,718
+979,324
+261,305
+782,93
+1092,623
+1049,726
+1216,311
+1020,317
+574,318
+1113,192
+194,327
+791,698
+773,327
+880,35
+259,261
+743,693
+1299,28
+1011,383
+525,254
+1305,414
+120,891
+962,604
+1280,567
+514,490
+11,28
+266,191
+1299,418
+892,211
+1173,323
+599,158
+1074,586
+678,740
+1180,829
+1092,719
+557,228
+214,714
+423,254
+1153,744
+692,868
+569,285
+726,463
+537,53
+1302,670
+1250,442
+723,561
+184,512
+520,613
+808,637
+72,316
+599,718
+796,68
+54,266
+952,639
+1278,297
+853,217
+1161,465
+567,245
+546,600
+932,527
+129,169
+574,519
+400,45
+743,474
+683,63
+219,625
+654,240
+402,394
+202,159
+1285,512
+885,390
+1019,19
+157,744
+927,176
+500,464
+177,429
+686,327
+830,730
+257,101
+997,593
+1056,148
+853,609
+828,771
+1078,311
+517,323
+567,72
+1074,596
+70,239
+372,661
+753,676
+1225,761
+8,352
+1133,744
+785,49
+1118,221
+1184,829
+23,575
+254,849
+632,624
+254,887
+641,623
+269,444
+351,688
+293,729
+254,148
+734,569
+574,621
+621,254
+410,210
+631,879
+72,663
+184,95
+8,318
+923,661
+1203,269
+482,99
+938,681
+1285,288
+600,714
+868,521
+691,317
+1272,495
+1043,824
+741,285
+820,74
+1233,53
+728,148
+984,598
+987,772
+326,296
+734,288
+1089,136
+587,261
+1240,879
+734,325
+90,623
+467,15
+1183,707
+80,733
+124,67
+514,826
+1235,245
+400,235
+1310,395
+1148,596
+1181,497
+971,866
+392,159
+713,444
+1299,866
+254,743
+32,597
+644,276
+1074,271
+885,106
+629,382
+87,245
+616,526
+363,187
+795,464
+740,264
+252,52
+191,420
+328,322
+520,501
+326,843
+869,238
+1215,857
+887,254
+274,1
+528,93
+927,830
+1202,399
+452,291
+865,343
+1041,640
+120,667
+132,416
+750,535
+845,289
+406,737
+1058,276
+557,464
+52,893
+604,142
+1081,676
+887,37
+272,868
+805,17
+1126,319
+564,623
+482,771
+956,322
+731,649
+1034,443
+811,394
+569,313
+412,830
+962,479
+904,624
+656,372
+710,490
+1255,401
+679,861
+551,121
+632,227
+1178,192
+977,744
+992,211
+1086,158
+378,527
+1297,47
+410,729
+438,85
+298,445
+582,764
+1251,773
+1000,719
+507,794
+909,668
+969,478
+843,413
+1308,101
+1230,716
+129,254
+458,745
+346,551
+313,593
+761,127
+1053,101
+304,602
+900,281
+1104,3
+736,57
+336,672
+134,137
+43,283
+746,439
+609,299
+1232,606
+689,254
+124,21
+1280,191
+715,9
+25,288
+869,656
+848,757
+870,752
+224,483
+915,136
+132,444
+1153,254
+552,606
+617,628
+177,445
+341,478
+348,290
+547,269
+682,98
+661,805
+743,374
+984,843
+236,569
+452,425
+646,542
+388,659
+1006,292
+339,28
+
+fold along x=655
+fold along y=447
+fold along x=327
+fold along y=223
+fold along x=163
+fold along y=111
+fold along x=81
+fold along y=55
+fold along x=40
+fold along y=27
+fold along y=13
+fold along y=6

+ 21 - 0
day13_transparent_origami/example.txt

@@ -0,0 +1,21 @@
+6,10
+0,14
+9,10
+0,3
+10,4
+4,11
+6,0
+6,12
+4,1
+0,13
+10,12
+3,4
+3,0
+8,4
+1,10
+2,14
+8,10
+9,0
+
+fold along y=7
+fold along x=5

+ 812 - 0
day13_transparent_origami/input.txt

@@ -0,0 +1,812 @@
+726,774
+246,695
+579,249
+691,724
+246,820
+738,887
+1088,75
+264,887
+704,775
+907,625
+676,117
+507,658
+1009,24
+547,735
+157,126
+599,113
+445,226
+363,691
+918,794
+927,113
+999,400
+443,305
+654,729
+408,767
+1066,863
+1148,473
+321,35
+1093,803
+1044,718
+202,889
+262,164
+378,541
+619,662
+1034,849
+432,595
+1145,656
+1295,668
+1125,705
+1161,529
+759,619
+1170,147
+688,742
+328,729
+718,439
+935,701
+246,647
+594,110
+845,495
+160,189
+1225,315
+580,486
+469,481
+440,401
+584,774
+897,719
+1007,516
+547,159
+112,117
+982,645
+62,439
+192,441
+631,211
+654,16
+113,698
+378,865
+373,19
+441,777
+390,7
+1263,312
+1121,610
+509,582
+893,352
+44,131
+1092,19
+592,719
+918,100
+326,820
+62,719
+520,889
+718,103
+571,579
+1165,267
+1208,334
+525,415
+268,588
+769,464
+596,716
+734,436
+1283,747
+35,457
+982,94
+1235,849
+932,752
+1265,243
+262,752
+99,704
+547,732
+1096,829
+791,329
+1222,320
+199,568
+671,494
+1079,93
+569,315
+129,415
+868,878
+788,803
+1175,889
+965,676
+904,660
+552,560
+619,484
+507,236
+566,768
+1215,30
+45,410
+885,441
+478,336
+945,397
+596,306
+1145,686
+189,495
+1153,126
+79,444
+719,403
+903,91
+27,105
+441,329
+768,565
+671,400
+507,205
+224,390
+867,753
+425,441
+1123,67
+833,14
+793,278
+1237,724
+238,808
+1099,32
+411,243
+1,574
+726,120
+862,441
+212,94
+80,199
+1047,312
+164,389
+440,773
+185,189
+412,114
+537,792
+403,697
+1208,768
+408,527
+1135,831
+746,826
+1064,110
+15,226
+102,574
+1001,442
+769,16
+1236,408
+440,121
+1309,131
+771,473
+1064,527
+189,284
+427,704
+276,865
+986,593
+1009,870
+745,276
+965,291
+1190,5
+1084,768
+313,750
+976,544
+1222,658
+223,619
+718,791
+976,574
+705,822
+785,863
+388,390
+1235,716
+579,645
+90,378
+497,849
+1308,145
+658,301
+648,94
+1150,189
+231,129
+408,639
+390,119
+132,556
+639,220
+885,453
+413,651
+639,68
+177,544
+552,782
+239,130
+867,645
+187,67
+1163,494
+1227,19
+249,658
+132,270
+740,82
+73,206
+1166,525
+262,506
+1092,875
+923,509
+967,400
+813,849
+734,364
+604,541
+566,758
+90,852
+190,831
+1047,65
+313,144
+542,157
+720,304
+129,863
+1280,149
+448,441
+947,484
+1048,506
+408,863
+657,803
+480,834
+201,369
+489,208
+1275,36
+1064,784
+781,845
+1071,152
+1251,61
+455,500
+564,68
+758,798
+922,390
+443,421
+505,792
+60,784
+1059,645
+741,315
+89,164
+142,637
+348,705
+763,735
+165,686
+711,781
+1220,852
+455,120
+1205,859
+1208,413
+1098,240
+33,505
+821,208
+35,289
+1251,833
+1131,226
+745,730
+75,625
+905,75
+738,7
+1223,316
+923,395
+7,884
+1153,299
+552,96
+1047,134
+642,266
+537,698
+1211,190
+959,235
+1235,625
+711,614
+510,798
+73,306
+47,582
+657,875
+468,75
+638,346
+144,525
+612,665
+917,57
+1235,402
+211,249
+831,63
+1197,250
+493,686
+887,801
+85,315
+263,65
+924,306
+140,595
+997,141
+657,173
+579,850
+489,686
+448,5
+572,7
+1248,103
+445,674
+711,113
+1232,884
+1121,278
+845,732
+786,630
+114,712
+691,662
+140,147
+1088,299
+408,191
+897,691
+92,662
+904,754
+1309,621
+102,768
+7,10
+33,429
+903,803
+2,749
+1083,704
+157,819
+325,91
+830,386
+763,284
+175,63
+902,199
+887,129
+1285,297
+1287,683
+590,304
+714,716
+6,686
+1136,834
+452,889
+653,315
+135,145
+683,329
+251,473
+1110,455
+959,516
+1091,838
+407,220
+654,800
+549,239
+765,355
+113,250
+771,93
+194,270
+864,803
+517,417
+345,291
+253,724
+365,145
+522,624
+692,495
+830,834
+1021,301
+825,595
+145,890
+1125,481
+48,119
+82,7
+965,666
+540,630
+542,121
+731,290
+85,763
+957,297
+1277,617
+1089,239
+619,612
+62,175
+427,190
+401,724
+1133,798
+475,882
+1062,140
+246,784
+1001,515
+244,31
+759,171
+1246,282
+249,236
+919,816
+907,25
+755,403
+557,725
+15,332
+840,861
+1031,760
+965,218
+813,45
+440,829
+885,457
+45,243
+351,435
+191,565
+984,820
+715,275
+689,641
+289,845
+575,892
+605,822
+1136,508
+137,278
+870,513
+59,621
+79,539
+89,276
+1,621
+753,725
+1119,301
+1,763
+1159,539
+1059,25
+267,843
+1072,236
+1203,607
+425,453
+62,551
+788,624
+576,884
+326,430
+345,452
+539,473
+1195,337
+981,432
+23,683
+455,394
+1098,654
+1118,441
+1277,429
+567,625
+773,698
+23,459
+441,464
+870,488
+567,269
+517,399
+935,302
+436,875
+309,442
+900,191
+1277,277
+1310,165
+383,781
+149,792
+492,578
+88,658
+736,500
+103,275
+731,44
+720,794
+1278,600
+981,462
+1020,623
+329,462
+333,483
+977,880
+1181,863
+509,890
+846,831
+246,527
+570,754
+841,481
+78,884
+1231,355
+618,47
+413,719
+850,786
+174,386
+364,175
+1193,196
+162,421
+221,239
+373,875
+718,7
+1231,539
+1218,662
+333,868
+885,9
+30,149
+1299,511
+227,190
+1197,698
+1150,705
+657,238
+783,717
+1159,383
+212,688
+241,719
+618,495
+1232,458
+985,432
+27,75
+918,506
+328,800
+145,582
+387,395
+90,516
+1019,773
+334,574
+1285,149
+716,558
+413,236
+353,477
+607,193
+845,844
+874,875
+1099,648
+264,63
+99,491
+263,312
+303,67
+463,565
+433,239
+902,527
+132,355
+1300,550
+606,119
+291,849
+25,86
+301,865
+1046,831
+805,102
+408,598
+1101,693
+1215,864
+947,691
+64,730
+1237,170
+970,628
+1136,60
+947,730
+334,544
+1149,686
+1009,198
+691,282
+691,457
+378,142
+599,614
+648,320
+507,400
+1178,803
+478,558
+267,51
+279,701
+965,452
+691,232
+401,170
+219,838
+1292,413
+296,373
+246,127
+446,91
+894,86
+115,480
+1287,155
+433,655
+263,134
+87,630
+965,403
+107,623
+189,610
+330,749
+1121,271
+965,603
+135,749
+1059,473
+328,165
+27,147
+443,134
+1210,320
+1211,470
+415,824
+835,882
+405,819
+957,870
+493,721
+1246,164
+935,591
+895,824
+264,455
+99,470
+408,296
+803,400
+1084,126
+1135,63
+835,46
+830,60
+653,721
+1104,453
+525,863
+102,334
+1235,45
+870,121
+375,591
+60,336
+348,880
+895,600
+517,477
+427,526
+100,551
+37,301
+477,880
+0,94
+383,390
+266,718
+212,240
+634,329
+291,493
+976,320
+751,30
+1119,593
+443,753
+1099,645
+79,450
+189,278
+358,745
+870,355
+1064,820
+353,597
+770,630
+157,75
+22,371
+214,493
+465,726
+1205,655
+740,469
+125,49
+1019,849
+735,556
+1148,421
+832,336
+803,338
+848,441
+946,175
+301,149
+115,305
+528,215
+6,208
+6,320
+691,410
+238,658
+16,346
+735,892
+689,725
+661,320
+1136,386
+1153,810
+363,730
+326,464
+321,819
+885,885
+1048,388
+425,9
+127,809
+656,16
+599,280
+74,408
+387,509
+73,724
+293,877
+557,687
+656,878
+1304,320
+1034,865
+704,119
+126,663
+141,656
+914,859
+1230,647
+340,266
+33,501
+1262,352
+505,344
+1283,105
+1198,289
+855,500
+574,871
+540,598
+465,844
+1210,343
+825,96
+290,623
+174,508
+132,539
+867,93
+1101,201
+392,142
+472,126
+552,320
+631,739
+867,473
+763,758
+467,67
+251,269
+1273,301
+619,282
+1148,130
+801,4
+566,136
+1098,94
+1274,47
+333,411
+401,82
+48,352
+1230,522
+907,269
+870,829
+631,683
+406,660
+440,488
+800,798
+244,765
+657,768
+662,94
+33,465
+785,415
+83,450
+1159,355
+653,686
+392,730
+417,352
+691,829
+902,598
+947,282
+242,469
+135,301
+174,834
+816,189
+914,894
+671,562
+460,786
+1079,765
+125,525
+213,430
+480,60
+1086,390
+1111,809
+375,302
+1227,390
+1072,684
+343,494
+443,473
+904,234
+485,45
+1285,86
+977,299
+758,782
+242,425
+460,718
+37,593
+730,486
+559,877
+505,102
+401,812
+231,254
+403,269
+493,238
+1181,479
+189,29
+545,355
+264,439
+547,60
+900,695
+689,393
+1079,254
+408,199
+846,383
+1223,630
+1121,284
+345,666
+441,117
+237,800
+191,525
+1066,255
+552,768
+639,494
+798,705
+1004,189
+1169,861
+686,745
+1121,29
+554,126
+1277,465
+977,432
+711,399
+12,628
+
+fold along x=655
+fold along y=447
+fold along x=327
+fold along y=223
+fold along x=163
+fold along y=111
+fold along x=81
+fold along y=55
+fold along x=40
+fold along y=27
+fold along y=13
+fold along y=6

+ 59 - 0
day13_transparent_origami/main.py

@@ -0,0 +1,59 @@
+import os, sys
+import numpy as np
+
+task_dir = os.path.dirname(__file__)
+sys.path.append(f"{task_dir}/..")
+from get_tasks import get_input, check_example, generate_readme
+
+
+def folding(input: list[str]) -> tuple[int, np.ndarray]:
+    coords = np.array(
+        [
+            (line.split(",")[1], line.split(",")[0])
+            for line in input
+            if len(line) > 1 and len(line) < 12
+        ],
+        dtype=int,
+    )
+    instructions = [line[11:].split("=") for line in input if line.startswith("f")]
+    x, y = 0, 0
+    for os, c in instructions:
+        if os == "y":
+            x = int(c) * 2 + 1
+        if os == "x":
+            y = int(c) * 2 + 1
+        if x != 0 and y != 0:
+            paper = np.zeros((x, y), dtype=np.int8)
+            break
+    paper[coords[:, 0], coords[:, 1]] = 1
+    for step, (os, c) in enumerate(instructions):
+        if os == "y":
+            paper = paper[: int(c)] + np.flipud(paper[int(c) + 1 :])
+        if os == "x":
+            paper = paper[:, : int(c)] + np.fliplr(paper[:, int(c) + 1 :])
+        if step == 0:
+            part1 = np.where(paper > 0, 1, 0).sum()
+    part2 = np.where(paper > 0, "#", ".")
+    return part1, part2
+
+
+def part1(input: list[str]):
+    part1, _ = folding(input)
+    print("The anwer of part1 is:", part1)
+
+
+def part2(input: list[str]):
+    _, part2 = folding(input)
+    print("The answer of part2 is:\n")
+    for line in part2:
+        print("".join(line))
+
+
+if __name__ == "__main__":
+    input, example = get_input(task_dir, 13)
+
+    check_example(example, part1)
+    part1(input)
+    part2(input)
+
+    generate_readme(task_dir, 13)

+ 3 - 0
day13_transparent_origami/src/main.rs

@@ -0,0 +1,3 @@
+fn main() {
+    println!("Hello, world!");
+}