Compare commits

..

2 commits

Author SHA1 Message Date
eriedaberrie 8834ee5feb 2024 day 18 2024-12-17 21:56:00 -08:00
eriedaberrie a844e05d24 2024 day 17 2024-12-17 21:56:00 -08:00

View file

@ -6,7 +6,7 @@ vector<int> tape;
// HACK: hardcoded input
ll rec(int i, ll a) {
for (ll aa = a << 3; aa < (a + 1) << 3; aa++) {
for (ll aa = a; aa < a + 8; aa++) {
ll b = aa & 7;
b ^= 1;
ll c = aa >> b;
@ -15,7 +15,7 @@ ll rec(int i, ll a) {
if (i == 0) {
return aa;
} else {
ll n = rec(i - 1, aa);
ll n = rec(i - 1, aa << 3);
if (n != -1) {
return n;
}