Loading repovive.com/contests/1/problems/A
You are given three integers , , and .
Count the number of pairs such that and the arithmetic mean of and is equal to , i.e. .
, ,
We need pairs with and , i.e., . Valid pairs: . Answer: 3.
, ,
We need with . Only valid pair: . Answer: 1.