A and B are integers ranging from 1 to 10^9 , pairs is a variable that contain value of the expression ((A/2)(B/2)+((A-(A/2))(B-(B/2))))
#include<