Compare commits
26 Commits
Author | SHA1 | Date | |
---|---|---|---|
0a6d8ab256
|
|||
4c58e5c51c
|
|||
36615d7f06
|
|||
334aaee7a5
|
|||
1a6529c7d2
|
|||
34e6055782
|
|||
c4faba7636
|
|||
982576dc68
|
|||
19f91dbc50
|
|||
2ef1e0656a
|
|||
a0867490c9
|
|||
3d3ea6e266
|
|||
4b5bd0d4e0
|
|||
5bc089c83d
|
|||
c788813cd2
|
|||
788239e531
|
|||
37928d7138
|
|||
da5823aa17
|
|||
8282e09a42
|
|||
343007481a
|
|||
44eeb5a8a6
|
|||
f8d2758c90
|
|||
d9e0d9b649
|
|||
94d83695bf
|
|||
365edf82b1
|
|||
a099a86511
|
@ -28,6 +28,9 @@ func (d *Day02) Part1() string {
|
||||
d.setParams(12, 2)
|
||||
d.program.Run()
|
||||
|
||||
if d.program.GetMemory(0) != 4138658 {
|
||||
panic("")
|
||||
}
|
||||
return fmt.Sprintf("Position 0 = %s%d%s", utilities.TextBold, d.program.GetMemory(0), utilities.TextReset)
|
||||
}
|
||||
|
||||
@ -56,6 +59,9 @@ func (d *Day02) Part2() string {
|
||||
if !found {
|
||||
panic("!found")
|
||||
}
|
||||
if noun != 72 || verb != 64 {
|
||||
panic("")
|
||||
}
|
||||
|
||||
return fmt.Sprintf("%d created by noun=%d, verb=%d. 100 * noun + verb = %s%d%s",
|
||||
sentinel,
|
||||
|
31
days/10.go
31
days/10.go
@ -45,9 +45,9 @@ func (d Day10) Num() int {
|
||||
// }
|
||||
// }
|
||||
|
||||
func (d Day10) getVisibleAsteroids(i1, j1 int) map[u.Vec2[int]]bool {
|
||||
visited := make(map[u.Vec2[int]]bool, 0)
|
||||
foundAsteroids := make(map[u.Vec2[int]]bool, 0)
|
||||
func (d Day10) getVisibleAsteroids(i1, j1 int) []u.Vec2[int] {
|
||||
visited := make([]u.Vec2[int], 0)
|
||||
foundAsteroids := make([]u.Vec2[int], 0)
|
||||
|
||||
findNext := func(startX, startY, incX, incY int) *u.Vec2[int] {
|
||||
var found *u.Vec2[int]
|
||||
@ -59,8 +59,8 @@ func (d Day10) getVisibleAsteroids(i1, j1 int) map[u.Vec2[int]]bool {
|
||||
y := startY + incY
|
||||
for x < len(d.asteroids) && x >= 0 && y < len(d.asteroids[x]) && y >= 0 {
|
||||
currPair := u.Vec2[int]{X: x, Y: y}
|
||||
if _, exists := visited[currPair]; !exists {
|
||||
visited[currPair] = true
|
||||
if !u.ArrayContains(visited, currPair) {
|
||||
visited = append(visited, currPair)
|
||||
|
||||
if d.asteroids[x][y] {
|
||||
if found == nil {
|
||||
@ -91,16 +91,16 @@ func (d Day10) getVisibleAsteroids(i1, j1 int) map[u.Vec2[int]]bool {
|
||||
}
|
||||
|
||||
if found := findNext(i1, j1, incX, incY); found != nil {
|
||||
foundAsteroids[*found] = true
|
||||
foundAsteroids = append(foundAsteroids, *found)
|
||||
}
|
||||
if found := findNext(i1, j1, incX, -incY); found != nil {
|
||||
foundAsteroids[*found] = true
|
||||
foundAsteroids = append(foundAsteroids, *found)
|
||||
}
|
||||
if found := findNext(i1, j1, -incX, incY); found != nil {
|
||||
foundAsteroids[*found] = true
|
||||
foundAsteroids = append(foundAsteroids, *found)
|
||||
}
|
||||
if found := findNext(i1, j1, -incX, -incY); found != nil {
|
||||
foundAsteroids[*found] = true
|
||||
foundAsteroids = append(foundAsteroids, *found)
|
||||
}
|
||||
|
||||
incY++
|
||||
@ -116,8 +116,8 @@ func (d Day10) numVisibleAsteroids(i1, j1 int) int {
|
||||
return len(d.getVisibleAsteroids(i1, j1))
|
||||
}
|
||||
|
||||
func (d *Day10) removeAsteroids(locs map[u.Vec2[int]]bool) {
|
||||
for loc := range locs {
|
||||
func (d *Day10) removeAsteroids(locs ...u.Vec2[int]) {
|
||||
for _, loc := range locs {
|
||||
if !d.asteroids[loc.X][loc.Y] {
|
||||
panic("tried to remove non-asteroid")
|
||||
}
|
||||
@ -156,15 +156,14 @@ func (d *Day10) Part2() string {
|
||||
|
||||
if vaporized+len(visibleAsteroids) < findNumVaporized {
|
||||
vaporized += len(visibleAsteroids)
|
||||
d.removeAsteroids(visibleAsteroids)
|
||||
d.removeAsteroids(visibleAsteroids...)
|
||||
continue
|
||||
}
|
||||
|
||||
vecs := u.MapKeys(visibleAsteroids)
|
||||
sort.Slice(vecs, func(i, j int) bool {
|
||||
return d.idealLocation.AngleBetween(vecs[i]) > d.idealLocation.AngleBetween(vecs[j])
|
||||
sort.Slice(visibleAsteroids, func(i, j int) bool {
|
||||
return d.idealLocation.AngleBetween(visibleAsteroids[i]) > d.idealLocation.AngleBetween(visibleAsteroids[j])
|
||||
})
|
||||
targetLocation = vecs[findNumVaporized-1-vaporized]
|
||||
targetLocation = visibleAsteroids[findNumVaporized-1-vaporized]
|
||||
break
|
||||
}
|
||||
|
||||
|
63
days/13.go
63
days/13.go
@ -2,7 +2,6 @@ package days
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
u "parnic.com/aoc2019/utilities"
|
||||
)
|
||||
@ -46,36 +45,36 @@ func (d Day13) getNumBlocks() int {
|
||||
return blockTiles
|
||||
}
|
||||
|
||||
func (d Day13) Draw() {
|
||||
s := strings.Builder{}
|
||||
for x := range d.gameBoard {
|
||||
for y := range d.gameBoard[x] {
|
||||
block := d.gameBoard[x][y]
|
||||
if block == tileBlock {
|
||||
s.WriteString(u.ColorBlue)
|
||||
s.WriteRune('█')
|
||||
s.WriteString(u.TextReset)
|
||||
} else if block == tileBall {
|
||||
s.WriteString(u.ColorGreen)
|
||||
s.WriteRune('█')
|
||||
s.WriteString(u.TextReset)
|
||||
} else if block == tileWall {
|
||||
s.WriteString(u.ColorWhite)
|
||||
s.WriteRune('█')
|
||||
s.WriteString(u.TextReset)
|
||||
} else if block == tileHPaddle {
|
||||
s.WriteString(u.ColorRed)
|
||||
s.WriteRune('█')
|
||||
s.WriteString(u.TextReset)
|
||||
} else if block == tileEmpty {
|
||||
s.WriteRune(' ')
|
||||
}
|
||||
}
|
||||
s.WriteRune('\n')
|
||||
}
|
||||
// func (d Day13) drawGameBoard() {
|
||||
// s := strings.Builder{}
|
||||
// for x := range d.gameBoard {
|
||||
// for y := range d.gameBoard[x] {
|
||||
// block := d.gameBoard[x][y]
|
||||
// if block == tileBlock {
|
||||
// s.WriteString(u.ColorBlue)
|
||||
// s.WriteRune('█')
|
||||
// s.WriteString(u.TextReset)
|
||||
// } else if block == tileBall {
|
||||
// s.WriteString(u.ColorGreen)
|
||||
// s.WriteRune('█')
|
||||
// s.WriteString(u.TextReset)
|
||||
// } else if block == tileWall {
|
||||
// s.WriteString(u.ColorWhite)
|
||||
// s.WriteRune('█')
|
||||
// s.WriteString(u.TextReset)
|
||||
// } else if block == tileHPaddle {
|
||||
// s.WriteString(u.ColorRed)
|
||||
// s.WriteRune('█')
|
||||
// s.WriteString(u.TextReset)
|
||||
// } else if block == tileEmpty {
|
||||
// s.WriteRune(' ')
|
||||
// }
|
||||
// }
|
||||
// s.WriteRune('\n')
|
||||
// }
|
||||
|
||||
fmt.Print(s.String())
|
||||
}
|
||||
// fmt.Print(s.String())
|
||||
// }
|
||||
|
||||
func (d *Day13) Part1() string {
|
||||
outputStep := 0
|
||||
@ -98,7 +97,7 @@ func (d *Day13) Part1() string {
|
||||
}
|
||||
})
|
||||
|
||||
return fmt.Sprintf("%d total tiles, # block tiles: %s%d%s", len(d.tiles), u.TextBold, d.getNumBlocks(), u.TextReset)
|
||||
return fmt.Sprintf("# block tiles: %s%d%s (%d total tiles)", u.TextBold, d.getNumBlocks(), u.TextReset, len(d.tiles))
|
||||
}
|
||||
|
||||
func (d *Day13) Part2() string {
|
||||
@ -135,7 +134,7 @@ func (d *Day13) Part2() string {
|
||||
ball = newTilePos
|
||||
} else if val == tileHPaddle {
|
||||
paddle = newTilePos
|
||||
// d.Draw()
|
||||
// d.drawGameBoard()
|
||||
// time.Sleep(time.Millisecond * 33)
|
||||
}
|
||||
}
|
||||
|
@ -314,7 +314,7 @@ func (d *Day15) Part1() string {
|
||||
visited.timesVisited = 1
|
||||
}
|
||||
d.pos = point{}
|
||||
// d.Draw()
|
||||
d.Draw()
|
||||
|
||||
return fmt.Sprintf("Moves required to reach target: %s%d%s", u.TextBold, d.visited[d.goalPos].distanceFromStart, u.TextReset)
|
||||
}
|
||||
|
@ -48,7 +48,6 @@ func (d *Day21) Part1() string {
|
||||
}
|
||||
|
||||
func (d *Day21) Part2() string {
|
||||
d.program.Reset()
|
||||
// @
|
||||
// #####.#.##.##.###
|
||||
// ABCDEFGHI
|
||||
|
@ -155,7 +155,7 @@ func (d Day24) calcRating(grid [][]bool) int {
|
||||
return rating
|
||||
}
|
||||
|
||||
func (d Day24) getNumBugs(gridMap map[int][][]bool) int {
|
||||
func (d Day24) numBugs(gridMap map[int][][]bool) int {
|
||||
ret := 0
|
||||
for _, v := range gridMap {
|
||||
for _, r := range v {
|
||||
@ -285,5 +285,5 @@ func (d *Day24) Part2() string {
|
||||
}
|
||||
}
|
||||
|
||||
return fmt.Sprintf("Bugs present after 200 minutes: %s%d%s", u.TextBold, d.getNumBugs(gridMap), u.TextReset)
|
||||
return fmt.Sprintf("Bugs present after 200 minutes: %s%d%s", u.TextBold, d.numBugs(gridMap), u.TextReset)
|
||||
}
|
||||
|
61
days/25.go
61
days/25.go
@ -1,61 +0,0 @@
|
||||
package days
|
||||
|
||||
import (
|
||||
"bufio"
|
||||
"fmt"
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
u "parnic.com/aoc2019/utilities"
|
||||
)
|
||||
|
||||
type Day25 struct {
|
||||
program u.IntcodeProgram
|
||||
}
|
||||
|
||||
func (d *Day25) Parse() {
|
||||
d.program = u.LoadIntcodeProgram("25p")
|
||||
}
|
||||
|
||||
func (d Day25) Num() int {
|
||||
return 25
|
||||
}
|
||||
|
||||
func (d *Day25) Part1() string {
|
||||
lastCmdStrings := make([]string, 0)
|
||||
sb := strings.Builder{}
|
||||
|
||||
inReader := bufio.NewReader(os.Stdin)
|
||||
d.program.SetDebugASCIIPrint(true)
|
||||
d.program.RunIn(func(inputStep int) int64 {
|
||||
lastCmdStrings = lastCmdStrings[:0]
|
||||
|
||||
text, _ := inReader.ReadString('\n')
|
||||
d.program.FeedInputString(text[1:])
|
||||
return int64(text[0])
|
||||
}, func(val int64, state u.IntcodeProgramState) {
|
||||
if val == '\n' {
|
||||
str := sb.String()
|
||||
if len(str) > 0 {
|
||||
lastCmdStrings = append(lastCmdStrings, sb.String())
|
||||
sb.Reset()
|
||||
}
|
||||
} else {
|
||||
sb.WriteRune(rune(val))
|
||||
}
|
||||
})
|
||||
|
||||
lastString := lastCmdStrings[len(lastCmdStrings)-1]
|
||||
var answer string
|
||||
if idx := strings.Index(lastString, " by typing "); idx >= 0 {
|
||||
startIdx := idx + len(" by typing ")
|
||||
endIdx := startIdx + strings.Index(lastString[startIdx:], " ")
|
||||
answer = lastString[startIdx:endIdx]
|
||||
}
|
||||
|
||||
return fmt.Sprintf("Door passcode: %s%s%s", u.TextBold, answer, u.TextReset)
|
||||
}
|
||||
|
||||
func (d *Day25) Part2() string {
|
||||
return "There is no part 2"
|
||||
}
|
@ -1 +1 @@
|
||||
1102,34463338,34463338,63,1007,63,34463338,63,1005,63,53,1101,0,3,1000,109,988,209,12,9,1000,209,6,209,3,203,0,1008,1000,1,63,1005,63,65,1008,1000,2,63,1005,63,904,1008,1000,0,63,1005,63,58,4,25,104,0,99,4,0,104,0,99,4,17,104,0,99,0,0,1102,252,1,1023,1102,36,1,1008,1102,24,1,1017,1101,25,0,1013,1102,479,1,1026,1101,0,259,1022,1102,1,38,1001,1102,1,713,1024,1101,0,708,1025,1102,1,22,1006,1101,0,32,1010,1101,476,0,1027,1102,1,516,1029,1102,1,34,1009,1101,0,23,1016,1102,1,37,1011,1102,525,1,1028,1101,0,35,1004,1102,31,1,1002,1102,39,1,1019,1102,28,1,1015,1102,1,1,1021,1101,0,30,1007,1101,0,27,1014,1101,21,0,1018,1101,0,29,1005,1102,26,1,1000,1102,1,0,1020,1101,0,20,1012,1101,33,0,1003,109,13,21108,40,40,6,1005,1019,199,4,187,1106,0,203,1001,64,1,64,1002,64,2,64,109,15,1205,-7,221,4,209,1001,64,1,64,1105,1,221,1002,64,2,64,109,-25,1208,-3,26,63,1005,63,243,4,227,1001,64,1,64,1106,0,243,1002,64,2,64,109,25,2105,1,-5,1001,64,1,64,1106,0,261,4,249,1002,64,2,64,109,-4,21108,41,42,-8,1005,1016,281,1001,64,1,64,1106,0,283,4,267,1002,64,2,64,109,-6,1206,2,301,4,289,1001,64,1,64,1105,1,301,1002,64,2,64,109,-4,21102,42,1,2,1008,1016,42,63,1005,63,323,4,307,1106,0,327,1001,64,1,64,1002,64,2,64,109,-7,2108,35,1,63,1005,63,343,1105,1,349,4,333,1001,64,1,64,1002,64,2,64,109,-13,1208,7,35,63,1005,63,369,1001,64,1,64,1106,0,371,4,355,1002,64,2,64,109,24,21102,43,1,-1,1008,1017,42,63,1005,63,391,1105,1,397,4,377,1001,64,1,64,1002,64,2,64,109,-13,2101,0,-4,63,1008,63,38,63,1005,63,419,4,403,1105,1,423,1001,64,1,64,1002,64,2,64,109,21,1206,-5,435,1106,0,441,4,429,1001,64,1,64,1002,64,2,64,109,-22,21101,44,0,10,1008,1014,44,63,1005,63,463,4,447,1105,1,467,1001,64,1,64,1002,64,2,64,109,25,2106,0,-2,1106,0,485,4,473,1001,64,1,64,1002,64,2,64,109,-19,2107,37,-2,63,1005,63,501,1106,0,507,4,491,1001,64,1,64,1002,64,2,64,109,8,2106,0,10,4,513,1001,64,1,64,1105,1,525,1002,64,2,64,109,-6,21107,45,46,0,1005,1012,547,4,531,1001,64,1,64,1105,1,547,1002,64,2,64,109,-5,1202,-1,1,63,1008,63,21,63,1005,63,567,1105,1,573,4,553,1001,64,1,64,1002,64,2,64,109,2,1207,-3,21,63,1005,63,589,1105,1,595,4,579,1001,64,1,64,1002,64,2,64,109,1,1201,-8,0,63,1008,63,34,63,1005,63,619,1001,64,1,64,1106,0,621,4,601,1002,64,2,64,109,-6,2102,1,-1,63,1008,63,33,63,1005,63,643,4,627,1105,1,647,1001,64,1,64,1002,64,2,64,109,10,21101,46,0,3,1008,1017,43,63,1005,63,667,1106,0,673,4,653,1001,64,1,64,1002,64,2,64,109,-13,2102,1,8,63,1008,63,35,63,1005,63,697,1001,64,1,64,1106,0,699,4,679,1002,64,2,64,109,23,2105,1,0,4,705,1105,1,717,1001,64,1,64,1002,64,2,64,109,-1,1205,-3,729,1106,0,735,4,723,1001,64,1,64,1002,64,2,64,109,-15,2101,0,0,63,1008,63,38,63,1005,63,755,1106,0,761,4,741,1001,64,1,64,1002,64,2,64,109,-2,2107,28,-1,63,1005,63,779,4,767,1106,0,783,1001,64,1,64,1002,64,2,64,109,-2,2108,35,0,63,1005,63,801,4,789,1105,1,805,1001,64,1,64,1002,64,2,64,109,1,1201,-5,0,63,1008,63,26,63,1005,63,831,4,811,1001,64,1,64,1105,1,831,1002,64,2,64,109,-5,1207,5,30,63,1005,63,849,4,837,1106,0,853,1001,64,1,64,1002,64,2,64,109,2,1202,-2,1,63,1008,63,26,63,1005,63,879,4,859,1001,64,1,64,1105,1,879,1002,64,2,64,109,15,21107,47,46,0,1005,1017,899,1001,64,1,64,1105,1,901,4,885,4,64,99,21102,1,27,1,21101,915,0,0,1106,0,922,21201,1,66416,1,204,1,99,109,3,1207,-2,3,63,1005,63,964,21201,-2,-1,1,21102,942,1,0,1105,1,922,21202,1,1,-1,21201,-2,-3,1,21102,1,957,0,1105,1,922,22201,1,-1,-2,1105,1,968,22102,1,-2,-2,109,-3,2105,1,0
|
||||
1102,34463338,34463338,63,1007,63,34463338,63,1005,63,53,1101,3,0,1000,109,988,209,12,9,1000,209,6,209,3,203,0,1008,1000,1,63,1005,63,65,1008,1000,2,63,1005,63,904,1008,1000,0,63,1005,63,58,4,25,104,0,99,4,0,104,0,99,4,17,104,0,99,0,0,1102,1,31,1018,1102,352,1,1023,1101,0,1,1021,1101,0,33,1003,1102,1,36,1007,1102,21,1,1005,1101,359,0,1022,1101,0,787,1024,1102,1,24,1011,1101,30,0,1014,1101,22,0,1016,1101,0,0,1020,1102,1,29,1000,1101,778,0,1025,1102,23,1,1017,1102,1,28,1002,1101,38,0,1019,1102,1,27,1013,1102,1,32,1012,1101,0,37,1006,1101,444,0,1027,1102,1,20,1009,1101,0,447,1026,1101,0,39,1008,1101,35,0,1010,1102,559,1,1028,1102,26,1,1004,1102,1,25,1015,1102,1,34,1001,1101,0,554,1029,109,-3,2101,0,9,63,1008,63,34,63,1005,63,205,1001,64,1,64,1105,1,207,4,187,1002,64,2,64,109,23,21107,40,39,-7,1005,1013,227,1001,64,1,64,1106,0,229,4,213,1002,64,2,64,109,-17,1202,-2,1,63,1008,63,36,63,1005,63,249,1106,0,255,4,235,1001,64,1,64,1002,64,2,64,109,-6,1202,10,1,63,1008,63,36,63,1005,63,277,4,261,1106,0,281,1001,64,1,64,1002,64,2,64,109,-2,1208,9,26,63,1005,63,303,4,287,1001,64,1,64,1106,0,303,1002,64,2,64,109,32,1206,-7,321,4,309,1001,64,1,64,1106,0,321,1002,64,2,64,109,-29,1207,7,20,63,1005,63,337,1105,1,343,4,327,1001,64,1,64,1002,64,2,64,109,27,2105,1,-2,1001,64,1,64,1106,0,361,4,349,1002,64,2,64,109,-25,2108,39,7,63,1005,63,377,1106,0,383,4,367,1001,64,1,64,1002,64,2,64,109,1,1201,6,0,63,1008,63,36,63,1005,63,409,4,389,1001,64,1,64,1105,1,409,1002,64,2,64,109,1,2102,1,1,63,1008,63,33,63,1005,63,435,4,415,1001,64,1,64,1105,1,435,1002,64,2,64,109,28,2106,0,-3,1106,0,453,4,441,1001,64,1,64,1002,64,2,64,109,-13,21101,41,0,1,1008,1018,44,63,1005,63,477,1001,64,1,64,1106,0,479,4,459,1002,64,2,64,109,4,21108,42,42,-2,1005,1019,501,4,485,1001,64,1,64,1106,0,501,1002,64,2,64,109,-21,2101,0,2,63,1008,63,28,63,1005,63,523,4,507,1105,1,527,1001,64,1,64,1002,64,2,64,109,26,1205,-5,545,4,533,1001,64,1,64,1105,1,545,1002,64,2,64,109,3,2106,0,-1,4,551,1106,0,563,1001,64,1,64,1002,64,2,64,109,-33,1201,4,0,63,1008,63,28,63,1005,63,583,1105,1,589,4,569,1001,64,1,64,1002,64,2,64,109,11,2107,27,-3,63,1005,63,609,1001,64,1,64,1106,0,611,4,595,1002,64,2,64,109,8,21102,43,1,3,1008,1018,43,63,1005,63,637,4,617,1001,64,1,64,1105,1,637,1002,64,2,64,109,-5,21108,44,41,0,1005,1010,653,1105,1,659,4,643,1001,64,1,64,1002,64,2,64,109,-13,2108,21,8,63,1005,63,681,4,665,1001,64,1,64,1106,0,681,1002,64,2,64,109,6,1207,0,34,63,1005,63,703,4,687,1001,64,1,64,1105,1,703,1002,64,2,64,109,7,1208,-7,35,63,1005,63,723,1001,64,1,64,1106,0,725,4,709,1002,64,2,64,109,-13,2102,1,7,63,1008,63,23,63,1005,63,745,1105,1,751,4,731,1001,64,1,64,1002,64,2,64,109,13,1205,10,767,1001,64,1,64,1105,1,769,4,757,1002,64,2,64,109,14,2105,1,0,4,775,1001,64,1,64,1106,0,787,1002,64,2,64,109,-20,21107,45,46,7,1005,1011,809,4,793,1001,64,1,64,1105,1,809,1002,64,2,64,109,-3,2107,25,3,63,1005,63,827,4,815,1106,0,831,1001,64,1,64,1002,64,2,64,109,13,1206,7,847,1001,64,1,64,1106,0,849,4,837,1002,64,2,64,109,-11,21101,46,0,7,1008,1010,46,63,1005,63,871,4,855,1106,0,875,1001,64,1,64,1002,64,2,64,109,15,21102,47,1,-4,1008,1014,48,63,1005,63,895,1106,0,901,4,881,1001,64,1,64,4,64,99,21102,27,1,1,21101,0,915,0,1106,0,922,21201,1,63208,1,204,1,99,109,3,1207,-2,3,63,1005,63,964,21201,-2,-1,1,21102,1,942,0,1106,0,922,21202,1,1,-1,21201,-2,-3,1,21101,957,0,0,1105,1,922,22201,1,-1,-2,1106,0,968,21201,-2,0,-2,109,-3,2106,0,0
|
@ -1,4 +1,4 @@
|
||||
<x=14, y=4, z=5>
|
||||
<x=12, y=10, z=8>
|
||||
<x=1, y=7, z=-10>
|
||||
<x=16, y=-5, z=3>
|
||||
<x=-6, y=-5, z=-8>
|
||||
<x=0, y=-3, z=-13>
|
||||
<x=-15, y=10, z=-11>
|
||||
<x=-3, y=-8, z=3>
|
File diff suppressed because one or more lines are too long
172
inputs/22p.txt
172
inputs/22p.txt
@ -1,100 +1,100 @@
|
||||
cut 578
|
||||
deal with increment 25
|
||||
cut -3085
|
||||
deal with increment 16
|
||||
cut -6620
|
||||
deal with increment 17
|
||||
cut -1305
|
||||
deal with increment 71
|
||||
cut -4578
|
||||
deal with increment 44
|
||||
cut 5639
|
||||
deal with increment 74
|
||||
deal into new stack
|
||||
deal with increment 39
|
||||
cut 7888
|
||||
deal with increment 17
|
||||
cut -2732
|
||||
deal into new stack
|
||||
cut 6512
|
||||
deal with increment 46
|
||||
cut -8989
|
||||
deal with increment 46
|
||||
cut -8518
|
||||
deal with increment 75
|
||||
cut -870
|
||||
deal into new stack
|
||||
deal with increment 53
|
||||
cut 7377
|
||||
deal with increment 60
|
||||
cut -4733
|
||||
deal with increment 25
|
||||
cut -6914
|
||||
deal with increment 23
|
||||
cut -4379
|
||||
deal into new stack
|
||||
cut 582
|
||||
deal with increment 35
|
||||
cut 9853
|
||||
deal with increment 2
|
||||
cut -142
|
||||
deal with increment 74
|
||||
cut 328
|
||||
deal into new stack
|
||||
deal with increment 75
|
||||
deal into new stack
|
||||
cut -8439
|
||||
deal into new stack
|
||||
deal with increment 34
|
||||
cut 2121
|
||||
deal with increment 2
|
||||
cut 8335
|
||||
deal with increment 65
|
||||
cut -1254
|
||||
deal into new stack
|
||||
cut -122
|
||||
deal with increment 75
|
||||
cut -9227
|
||||
deal with increment 57
|
||||
cut 5974
|
||||
deal into new stack
|
||||
deal with increment 32
|
||||
cut -1725
|
||||
deal with increment 24
|
||||
cut 3976
|
||||
cut 6093
|
||||
deal with increment 6
|
||||
cut -2842
|
||||
deal with increment 14
|
||||
cut 2609
|
||||
deal with increment 12
|
||||
cut -6860
|
||||
deal with increment 51
|
||||
cut -6230
|
||||
deal with increment 61
|
||||
cut 3152
|
||||
deal with increment 28
|
||||
cut 2202
|
||||
deal into new stack
|
||||
deal with increment 8
|
||||
cut -3292
|
||||
deal with increment 4
|
||||
deal with increment 60
|
||||
cut 433
|
||||
deal into new stack
|
||||
cut -8851
|
||||
deal with increment 2
|
||||
cut -6256
|
||||
deal with increment 13
|
||||
deal into new stack
|
||||
cut 4333
|
||||
deal with increment 73
|
||||
cut 8379
|
||||
deal into new stack
|
||||
deal with increment 54
|
||||
cut 1120
|
||||
deal with increment 16
|
||||
cut -5214
|
||||
deal with increment 63
|
||||
deal into new stack
|
||||
cut -8473
|
||||
deal with increment 11
|
||||
cut 228
|
||||
deal with increment 45
|
||||
cut -6755
|
||||
deal with increment 50
|
||||
cut -3391
|
||||
deal with increment 44
|
||||
cut -1341
|
||||
deal with increment 28
|
||||
cut -6788
|
||||
deal with increment 52
|
||||
cut 3062
|
||||
deal with increment 41
|
||||
cut 4541
|
||||
deal with increment 57
|
||||
cut -7962
|
||||
deal with increment 56
|
||||
cut 9621
|
||||
deal with increment 57
|
||||
cut 3881
|
||||
deal with increment 36
|
||||
deal into new stack
|
||||
deal with increment 45
|
||||
cut 522
|
||||
deal with increment 9
|
||||
cut -7880
|
||||
deal with increment 49
|
||||
cut 9770
|
||||
deal with increment 30
|
||||
cut 2701
|
||||
deal with increment 59
|
||||
cut 4292
|
||||
deal with increment 37
|
||||
deal into new stack
|
||||
cut -184
|
||||
deal with increment 25
|
||||
cut 9907
|
||||
deal with increment 46
|
||||
deal with increment 60
|
||||
deal into new stack
|
||||
cut 902
|
||||
deal with increment 46
|
||||
cut 2622
|
||||
deal with increment 12
|
||||
cut -9181
|
||||
deal with increment 63
|
||||
deal into new stack
|
||||
cut 637
|
||||
deal with increment 58
|
||||
cut 7354
|
||||
deal with increment 69
|
||||
deal with increment 14
|
||||
cut -2906
|
||||
deal with increment 10
|
||||
cut 848
|
||||
deal with increment 75
|
||||
cut 798
|
||||
deal with increment 29
|
||||
cut 1412
|
||||
deal with increment 10
|
||||
deal into new stack
|
||||
deal with increment 49
|
||||
cut -5295
|
||||
deal into new stack
|
||||
deal with increment 19
|
||||
cut -8342
|
||||
deal with increment 68
|
||||
deal into new stack
|
||||
cut 4432
|
||||
deal with increment 72
|
||||
cut -7831
|
||||
deal into new stack
|
||||
cut 6216
|
||||
deal into new stack
|
||||
deal with increment 7
|
||||
cut -1720
|
||||
deal into new stack
|
||||
cut -5465
|
||||
deal with increment 70
|
||||
cut -5173
|
||||
deal with increment 7
|
||||
cut 3874
|
||||
deal with increment 65
|
||||
cut 921
|
||||
deal with increment 8
|
||||
cut -3094
|
@ -1,5 +1,5 @@
|
||||
##..#
|
||||
...##
|
||||
.#.##
|
||||
...#.
|
||||
....#
|
||||
.#...
|
||||
#..#.
|
||||
..#..
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user