牛牛学立体
牛牛学立体
https://ac.nowcoder.com/acm/problem/21999
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,h,c,s;
cin>>a>>b>>c;
h=(a*b+a*c+b*c)*2;
s=a*b*c;
cout<<h<<endl;
cout<<s<<endl;
return 0;
}牛牛学立体
https://ac.nowcoder.com/acm/problem/21999
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,h,c,s;
cin>>a>>b>>c;
h=(a*b+a*c+b*c)*2;
s=a*b*c;
cout<<h<<endl;
cout<<s<<endl;
return 0;
}相关推荐