// No.1656 Recuperation package main import "fmt" func main() { var t int fmt.Scan(&t) type ca struct { a int b int ans int } cases := make([]ca, t) for i := 0; i < t; i++ { fmt.Scan(&cases[i].a, &cases[i].b) cases[i].ans = cases[i].b + (cases[i].a * cases[i].b) } for _, c := range cases { fmt.Println(c.ans) } }