Explorar el Código

add scheduler interface

Gildas Chabot hace 7 años
padre
commit
824646341f
Se han modificado 1 ficheros con 14 adiciones y 0 borrados
  1. 14 0
      main.go

+ 14 - 0
main.go

@@ -12,6 +12,20 @@ var A int
12 12
 var B int
13 13
 var C int
14 14
 
15
+type Scheduler interface {
16
+	Add(Car)
17
+	Pop() Car
18
+}
19
+
20
+type Car struct {
21
+	ID    int
22
+	Rides []int
23
+
24
+	Arrival int
25
+	X       int
26
+	Y       int
27
+}
28
+
15 29
 func solve() {
16 30
 	fmt.Fprintf(output, "%d\n", C)
17 31
 }