package main import ( "fmt" ) func main() { var count int fmt.Scan(&count) var headValue int fmt.Scan(&headValue) root := &List{Val: headValue, Next: nil} for i := 0; i < count-1; i++ { var a,b int fmt.Scan(&a, &b) head := root for head ...