800061: [Python入门语法]长方形的周长和面积

Memory Limit:128 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:88 Solved:41

Description

已知长方形的长为l, 宽为w,求长方形的周长和面积。

Input

输入包括两行,输入均为整数。 第一行是长。 第二行是宽。

Output

输出包括两行。 第一行输出长方形的周长。 第二行输出长方形的面积。

Sample Input Copy

5
6

Sample Output Copy

22
30

Source/Category

加入题单

上一题 下一题 算法标签: