Przeglądaj źródła

writting output

Gildas Chabot 7 lat temu
rodzic
commit
200a49c712
1 zmienionych plików z 7 dodań i 1 usunięć
  1. 7 1
      main.go

+ 7 - 1
main.go

@@ -79,7 +79,13 @@ func solve() {
79 79
 	for assign() {
80 80
 	}
81 81
 
82
-	fmt.Fprintf(output, "%d\n", C)
82
+	for _, c := range Cars {
83
+		fmt.Fprintf(output, "%d", len(c.Rides))
84
+		for _, ri := range c.Rides {
85
+			fmt.Fprintf(output, " %d", ri)
86
+		}
87
+		fmt.Fprintf(output, "\n")
88
+	}
83 89
 }
84 90
 
85 91
 func main() {