Compare commits
2 commits
6edb409e18
...
8834ee5feb
Author | SHA1 | Date | |
---|---|---|---|
8834ee5feb | |||
a844e05d24 |
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue