题解 | #KiKi设计类继承#
KiKi设计类继承
http://www.nowcoder.com/practice/699ba050e2704591ae3e62401a856b0e
哈哈哈...
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,m,x,a;
cin>>n>>m>>x>>a;
cout<<n*m<<endl<<3.14*x*x<<endl<<a*a;
}
KiKi设计类继承
http://www.nowcoder.com/practice/699ba050e2704591ae3e62401a856b0e
哈哈哈...
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,m,x,a;
cin>>n>>m>>x>>a;
cout<<n*m<<endl<<3.14*x*x<<endl<<a*a;
}
相关推荐