Problem4486--矩形的周长与面积

4486: 矩形的周长与面积

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

用户给程序两个数,第一个数表示某个矩形的长,记为 lns="http://www.w3.org/1998/Math/MathML">a,第二个数表示该矩形的宽,记为 lns="http://www.w3.org/1998/Math/MathML">b

。请你写一个程序,程序读入两个数字后,计算并输出对应矩形的周长与面积。

数据范围

1≤a,b≤10000

Input

  • 两个整数表示 lns="http://www.w3.org/1998/Math/MathML">a 与 lns="http://www.w3.org/1998/Math/MathML">b

Output

  • 第一行:单个整数表示矩形的周长
  • 第二行:单个整数表示矩形的面积

Sample Input Copy

3 2

Sample Output Copy

10
6

Source/Category