Compare commits
1 Commits
08f7db87ad
...
86025cd66f
Author | SHA1 | Date | |
---|---|---|---|
86025cd66f |
25
03dec/main.go
Normal file
25
03dec/main.go
Normal file
@ -0,0 +1,25 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"strconv"
|
||||
)
|
||||
|
||||
const (
|
||||
W = iota
|
||||
N
|
||||
E
|
||||
S
|
||||
)
|
||||
|
||||
func main() {
|
||||
n, err := strconv.Atoi(os.Args[1])
|
||||
if err != nil {
|
||||
os.Exit(1)
|
||||
}
|
||||
fmt.Println(n)
|
||||
|
||||
cur, x, y, dir, width, height := 1, 0, 0, W
|
||||
// create cell and compute change direction, expand grid
|
||||
}
|
Loading…
Reference in New Issue
Block a user