1596 边长长1


Submit solution

Points: 100
Time limit: 1.0s
Memory limit: 32M

Problem types
Allowed languages
C, C++, Java, Python

Description

已知循环输入矩形边长A和B,求矩形面积的程序:

includeiostream>

using namespace std;

int main(){ for(int a,b; cin>>a>>b; ) cout

将其改写为循环输入矩形边长A和B,令矩形边长各加1,求其面积的程序。

Input

有一些数对,描述矩形边长A和B(数据量很小,边长也不超过5000)。

Output

以每个数对为基础,各边长加1,计算输出矩形的面积。每个面积占一行。

Sample

Input

6 3
7 2

Output

28
24

Source: qianneng


Comments

There are no comments at the moment.