5 4
20
18
#include<iostream> using namespace std; class Rectangle///矩形 { //pdsu-c1 //pdsu-c1 }; int main() { Rectangle a; a.set(); //输入矩形的长和宽 cout<<a.area()<<endl; //计算和输出矩形面积 cout<<a.perimeter()<<endl;//计算和输出矩形周长 return 0; }
Anything about this OnlineJudge, Please Contact Administrator. Click add QQ
OJ system based on HUSTOJ Project , UI based on Twitter Bootstrap
Copyright 2016 ACM算法攻关部cnt: 34127
关于网站改版