// No.1131 Deviation Score package main import ( "fmt" ) func main() { var n int fmt.Scan(&n) var x = make([]float64, n) for i := 0; i < n; i++ { fmt.Scan(&x[i]) } sum := 0.0 for j := 0; j < n; j++ { sum += float64(x[j]) } avg := sum / float64(len(x)) for k := 0; k < n; k++ { fmt.Println(int(50 - ((avg - x[k]) / 2))) } }