浏览代码

writting output

Gildas Chabot 7 年之前
父节点
当前提交
200a49c712
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7 1
      main.go

+ 7 - 1
main.go

@@ -79,7 +79,13 @@ func solve() {
79
 	for assign() {
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
 func main() {
91
 func main() {