题解 | #牛牛学立体#

牛牛学立体

https://ac.nowcoder.com/acm/problem/21999

传送门->https://ac.nowcoder.com/acm/problem/21999

my blog->https://blog.nowcoder.net/yanhaoyang2106

长方形的表面积:2(ab+ah+bh)

长方形的体积:abh

#include<iostream>
using namespace std;
int main()
{
    int a,b,c;
    cin>>a>>b>>c;
    cout<<(a*b+a*c+b*c)*2<<endl<<a*b*c;
    return 0;
}

拜拜

已写的题解集 文章被收录于专栏

将自己知道的一些竞赛知识推广给大家

全部评论

相关推荐

吴offer选手:学到了,下次面试也放张纸在电脑上,不然老是忘记要说哪几个点
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务