AtCoder Beginner Contest 039 A - 高橋直体 date: 2016-06-11 see also: https://beta.atcoder.jp/contests/abc039/tasks/abc039_a implementation awk 23byte $0=2*($1*($2+$3)+$2*$3)