From ba40688c4a2fda8d18da492c7cfcbef9bfdb3c0a Mon Sep 17 00:00:00 2001 From: Orangerot Date: Sat, 17 Dec 2022 03:59:18 +0100 Subject: [PATCH] day09 --- 2022/day01/main | Bin 20760 -> 0 bytes 2022/day03/main | Bin 20800 -> 0 bytes 2022/day04/main | Bin 20672 -> 0 bytes 2022/day05/main | Bin 21080 -> 0 bytes 2022/day06/main | Bin 20704 -> 0 bytes 2022/day07/main | Bin 21104 -> 0 bytes 2022/day08/main | Bin 20864 -> 0 bytes 2022/day09/input1.txt | 8 + 2022/day09/input2.txt | 2000 +++++++++++++++++++++++++++++++++++++++++ 2022/day09/input3.txt | 8 + 2022/day09/main.c | 49 + 2022/day09/main2.c | 50 ++ 12 files changed, 2115 insertions(+) delete mode 100755 2022/day01/main delete mode 100755 2022/day03/main delete mode 100755 2022/day04/main delete mode 100755 2022/day05/main delete mode 100755 2022/day06/main delete mode 100755 2022/day07/main delete mode 100755 2022/day08/main create mode 100644 2022/day09/input1.txt create mode 100644 2022/day09/input2.txt create mode 100644 2022/day09/input3.txt create mode 100644 2022/day09/main.c create mode 100644 2022/day09/main2.c diff --git a/2022/day01/main b/2022/day01/main deleted file mode 100755 index 68fb10f582106a7c33d24dc658c9334cefd2fcc0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 20760 zcmeHP4Uingb?%wnz1`F5{&e~UgjOKQ0e>H7EUFsqcWYOGKm_;iaow z7$eI~y1tuX$GH5eN$=)^s=m4Q!#WjzO;uP$S2i=WaYI)&9nEHPrHSZ7@5boH4Y6WA z)+3w1cCEw4F|}*oVPPH@r-^BMLl||ksbr|gMBRnh7}0lS^hZ$80fP$mE=1K`jo6 zjbhiH-P^WXJ+TcHt|xYFg=)-q{N?nHG+eTNGBhB-6~%mQ?a1U;HwLiz&t+GwJh_ zj?z8eCms+=52lh(IF(jR-U%(1<`I z0*wg#AB(`hwO#&;#ECaUiOIkdT|y*2ciJ(_XA>u$3Oy-%Qoi=D0GC&P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@ZFtgboQ767TJq8|8{5t|kamoMy diff --git a/2022/day03/main b/2022/day03/main deleted file mode 100755 index 6f77a3f77f8ec7da1fb5b8d72e3e1ec5f7028c5b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 20800 zcmeHP4RBo5b-wTIu6Cu>pC$PZW4s32G2mTUvN1A7_WEb-RgizMURJM->2=ey^ed+&Moy?5WwefLCqcbkSGbaIKUg3?H{jf8bUR5L<^ zMVDwmzFMpjHGtjN!m8Lw&zN?BraqOXL$yOwU0$j$Kx3qU%uDn~O4PK{jD_!#)i>XMSg+!*sS2xTPpA4fZEQ~`g6UMII2s)7+7#ThF_h1SI%N~s zuJzbBruOVREX?C#f|#~9gfUAtl?)Y`sN05(VW<7)yJjB!@wInO|HjROy|27|?A1q- zfpyejKj@P>OvJe9#OBvwqmCV)fH)4GiTL2*m=1-+oY@ipElv>f+IjH1fCsQS6A!z& z{PfI&-w!;1&6xrK=JNA3;4E{d>i}Ht1R*mX3&c{fK5Q52@hsKrsS zN$lzE*|F2=3~elN8_H~F=o(@5^zF40$y{@fg|PD752mzzk=c65(y<2FGWj4G*;Y6Pkgs79a~focS* z5vWGsS1SVl-gMc|qbJ_+5){XY8e0qhmjdp7^Kf1AUQ> ziH;YeC%XsXWM<*jP=9wI)U@LBFhPS(c8>vxp7eZLNv9JJepcNbGB*4aq68? z6#6$y{c8@ATzN4%HXVKT?QPL#FSw${^U;?s7TVz8m5}YgH*J(xA)XQnPihsWAd%_wz2HuRyKue}+*H%In?a_VzAd`GS6o&`F4#z| zDm=eFdLnYcfW(69>x!o!PgABT9n!F`cun!X!(2IgOb((${WIr5nnsN^Rs{GCX>~%>txnVlW0`9UZwC23q-}a;=F^}FP~0AiTi%(O;T`!Kpnt@2Y)r>d3WQIPd54Q^c@%5 zF4=O`hE?)49&K6gORzslz3q+7Uodwz)R_072HW><0^W*ttm9J$UGDmXAr)v-P1Oig zBT$V%H3HQLR3lK0Ks5r@2vj3bjllnd2*Jr9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UU( z_ZfbZb0EaBvO#90&bFmg(Xm4tRqS9Snin5lTn_&n$jxx>!5I!8&SYu zc!m{%(@)b_VK$lE&4$cGt*I}ht}bK0t2wmeimiKBUD4g)sxJ(gSb1d}gEF1xXf&7e zS`JEH((c4|FE)m7s*> zV8f~OQ4vWGY}#nul+7hXW+;)f6-VF$PFY`3pvG8196S`c(b{>)+TFW-kF{^VbuecBp61zU{qsW#|S?MJ6`PwPlP!XO~@5B3tBwvpklv$&SKlsb0APjxjiv%w{8`Egy|+q383_P)sM0FQQFBln}+R~%M5J37?8N+38K%f*Mf?Zups3dKyadoYF!h}RY=9s!Q^N%ZVwE3 z1Yr*_T-*bCT$J|(26<^PZs-)beDZcHp2q00iTf8&l)ZhePlT5qqt{G-%gTza0S@ejbXXrY2OARu$$R{;-H=xO%L5?>+$VU5_7H%W7?&;B*w z&0!Yoy;If!Wtv z#4^GEAKb*52I}n3=am!r{{!`B1V>f)i-8Uye{Z07vg79lm48l{?ST77h*19Ma3R(Y zTFBXSNOQQZB{AI($!jvEVx_4}z5Fm_qjuivw2I)Spv-S=shG~rCY`=}#&t14rw0-HloT~7QQq=W3`+q;mX}?41>Gyn^9#J^$ z@j&e(@p}juW1{_+u5ao($MId6oa5&K6js^?l%1vrDviPG%crJ)?6BAK15LlB1Ec(C zJMH!x4tqU6(zHPGtb+=K6W;o&I<~!S*Y4?N(@e=iHvU zOqwoI_BLA14=9JzWk_<)`d80mAMUUXzvQ^9)%9w(9rM`#h!-ZLhaCnEQEZ#X{;1k< zfA27Gh~fri?~LD}>+JfEISx2&uj!}evH!tV+kUH7w8c`~H9Vl~RdI> z(=cUy?$8+Nfv_!2tATX|#8zy2-0JIJEigUyYzsRN@3Lvc;oMn2Z=>e2zjwE7e}}`s HA&UP3M@-Ly diff --git a/2022/day04/main b/2022/day04/main deleted file mode 100755 index 498303fca967dc8d9e62ff7e8ae0d2ee8d103b28..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 20672 zcme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)1eDw;Z$Llq7z6`Ybg(}f~dO*04^ zWrcJ$K?Q?h`K6-T&1fk-3Y=pKWqI8>(e#iRMO<3zYWP89UYfC&0&Zm`eL6jK08gMvp!+ z&Y~~xhce(%Me3LLTmsLa%$;b%o$dg^cSxcy?~Me?wNd;RIf3^;pYNoEmiJNu517iT z{TCnj9E5!$`V(eVCve;dO8wRC|BBJyVdUgJo4~kB9}l=b7QaWpV@$+;<+^3AUmV}= zR6TwkLZMqfZ1ezDP7zy=XCu-gA8jK0KQ zg^i$rt%ej(t^X_vSik7Eh8;K}1g=o~q5zmv!x8qbPog8PTiI z&?is)m-XXXqhBpgU)`y})L-qV=*#>gI-)O-_XmQD3}Lr1c;3wf-dshmzKs65c1Q5b zRd<=yb+unc|3zMykhq?Arz%qM{-c^l`Anyy^_{B1DpGyg=vT+D_eMwmc-09f`T}pc zjQ(@m9Q|z~=#Uj(g*{;OO>qT$wB12vUX}vUbJH?+2#>J4+oArz46Lg`w&0NQB-g)s i@MP>c8csgh>%e7I#;fb+?a^%d-d&FVomC1|r20>3NKAVG diff --git a/2022/day05/main b/2022/day05/main deleted file mode 100755 index 1d6717081fd1b94f6eff67893fcffcb628efa45b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 21080 zcmeHPd5~PidG9yJ&a75@=$1f2BambPo>{FVq!nV(=oo2a>p}+(6`QBg%6+Ky(cjVib-(wz-$MyQ z$JExH`-SJI7$MK-Tf(ZLJuaHEGjTBN)W1DE`pCoSzT@wo+THcsTYKgOey@BlW!Mhd zqzn^zJWOKsn{iM^#U~_=0%sz>XMe(kLh{_%0x+h#nV?rq!aoUq2!}fbz?jI+)Jgbk z%|!Cw06&Doop?G-B>&+__)8|?e+T>!4tLrD#-(m1XvTG#m?w5eRiQa=M6s00b9L6NZ8$( zTq2vfH7)uJnOvzG+)Oc_T)WmTCKI`CK_w2n)ne=RZ5ub)D!gYE@o9>GR$m7V zKdSlBs4B1UH9fLk@p(>|x{`C+!Pl2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djLGfMEkE^ztnY%r(xV}3|wCx zHT)xw{VhtMVS^5g@}upv+pl@-^*Tqx2Cb-|xBibP`)V-}rKq5ex8j~R{-1(??br4p zZKvRJ$lS?W{s{=(_Nya~wuYZ{8w2;&=N0g<>XzpKRrPyi{XZtJzNR&N9X5P~tEP?W zdVG?P29dO$L(R~de+B}M9c{1I$<_aBv2jQo|4iCW_ah(wQAOM9|KCh>Qd@{s4yfkZ zUPG>{-S+yu^^~$-UA1%&ZKolgy3MlJ>)Q@xsOzcSXuB#6d-8PsSH~U6steeA{WYla zmAZB-w7qwY&bBgX$omJ4I}#_4D~D&@OyJ(~S6sk;b(dp!ujek*TUOTv?4RR>35l;1 z-N{3WO&74w^*C1F^%!_a!TTHXyz$#|tz&=KbHZtR4L^DT`=>WL_8YaLLsnz0*#pX6 ziL2oKO%AH(Wi8NlZd%VBnnxIqJJf_4SeJur!=cBYzW&vNr^lXSq4KQ`+H_z$4KTt5H+ diff --git a/2022/day07/main b/2022/day07/main deleted file mode 100755 index 25694668f9f8118bbcf3656a15be3ac610e7c06a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 21104 zcmeHPdvIJ=c|Uh|rCmwZ!f9#pL=X;#*b-r`%z2`oEKfG_Z%P@p4ZgGnsHQr)zLaJf?UWEXJM3-np zy;`giwV*wcXSIhcfL5!VcU3~4;=2Kb-L3ZQ6c*Q3dE0og3hbyvdsRbEajsP#xvZ&K+^D!npP{w5XF z`D9MGb*X$hVF+z3Az2II)EicMPPj|SYe*j~hhHhg|2O`6w4Ps@5nT>=v&9w~YJYEr zo*E)0@%lgy^C9JLu5nne@~@#vt7uOpk8a-Bo{9%j$#iizFx<5{uz6!Jp9ywK$Bb(| zHqNO%2l|BTgcv7J>l?zTpk0cFh%A&{h>dBd{-%Fm-M0Qu&ivr? zt(0LuXp=H5pz}I|qLPd_Oj4*$>9GP9|vXSM$YH;z-D9 z)ccvp7jm)eF@Sh7Ele|Ch{o)(QK=pqj+*_+bTp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&Xxblw!taLGN4JLDG{;5FaDcAj%gGy^V zmv;Zipc1zB6^p7$`9BEq?-D9h)L$o5V3vjdG|<82pB?DYullQl^8Zw*bijcVB3e8+ zc@oF^Es90duw8HtmO=75qyr0nSF3l!)();&qEsKmGEPL( z2Xm;xrB1;uIbauxSlCqv7Rm~CHc11;VTCB7vYAoG9s$p3iL$&L;HW*QCL)(Zp5$7% zGt#xtJRD`6D$~{~d%bSaG*YSlK6~C={VzNt((TvJ%{0~hZ%}@! z+n)rE`$S&<$5s0^<$0BfeI%>xc`t`4gN-J-e*K(IQ{ML|Ps*JK?FYwaVA@_k_tKO% z>X>xWlpk%U-9Auduh(CiHfcpgtK0vOviGWqC`CnaTd^Wl+dqa<_Fvn#M_hGHm$;&r zSKIT6QMrA0#8uVw6P~5Z=<(O^i(qgyAol@c`nk9Mzo=?`Eo=G;YsV78*S&wuqUS5uh*XmWnZn&ww9+RRlidA zinM+8T36d^I#=0yhKjjKIXqKU&{`!goyLAwm#g^2s;gjKuXe-hp=yj}ukpl$#7COt zsY(>z;qNe@IzFdd= z!kCMA$7NT1U##dyA3KzaBsaxeDWuweAw(XF^nB9izeZqs?zt9jKDf!HH&!{ +#include + +typedef struct Cord_ Cord; + +typedef struct Cord_ { + int x,y; + Cord *next, *prev; +} Cord; + +Cord* updateTail(Cord *head, Cord *tail) +{ + int dy, dx, d; + dx = head->x - tail->x; + dy = head->y - tail->y; + d = dx * dx + dy * dy; + // distance <= 1 + if ( d <= 2) return tail; + tail->x += (dx + dx/abs(dx))/2; + tail->y += (dy + dy/abs(dy))/2; + + return tail; +} + +int main() +{ + char c; + int d; + Cord *h, *t; + t = &(Cord){0}; + h = &(Cord){0}; + while (scanf("%c %d\n", &c, &d) != EOF) + { + printf("%c %d\n", c, d); + for (int i = 0; i < d; i++) + { + h->x += (c == 'R') - (c == 'L'); + h->y += (c == 'U') - (c == 'D'); + printf("H %d %d \n", h->x, h->y); + t = updateTail(h, t); + printf("T %d %d \n", t->x, t->y); + } + } + +} + +// ./main < input2.txt | grep T | sort | uniq | wc -l + + diff --git a/2022/day09/main2.c b/2022/day09/main2.c new file mode 100644 index 0000000..da2382c --- /dev/null +++ b/2022/day09/main2.c @@ -0,0 +1,50 @@ +#include +#include + +typedef struct Cord_ Cord; + +typedef struct Cord_ { + int x,y; + Cord *next, *prev; +} Cord; + +Cord* updateTail(Cord *head, Cord *tail) +{ + int dy, dx, d; + dx = head->x - tail->x; + dy = head->y - tail->y; + d = dx * dx + dy * dy; + // distance <= 1 + if ( d <= 2) return tail; + tail->x += (dx + dx/abs(dx))/2; + tail->y += (dy + dy/abs(dy))/2; + + return tail; +} + +int main() +{ + char c; + int d; + Cord h[10] = {0}; + while (scanf("%c %d\n", &c, &d) != EOF) + { + printf("%c %d\n", c, d); + for (int i = 0; i < d; i++) + { + h[0].x += (c == 'R') - (c == 'L'); + h[0].y += (c == 'U') - (c == 'D'); + printf("H %d %d \n", h->x, h->y); + for (int i = 0; i < 9; i++) + { + updateTail(&h[i], &h[i+1]); + } + printf("T %d %d \n", h[9].x, h[9].y); + } + } + +} + +// ./main < input2.txt | grep T | sort | uniq | wc -l + +