题解 | 牛牛学立体

牛牛学立体

https://www.nowcoder.com/practice/3d0bd5e060154211bddc1ee892714df0

const rl = require("readline").createInterface({ input: process.stdin });

rl.on("line", (input) => {
    inputs = input.split(' ');
    a = parseInt(inputs[0]);
    b = parseInt(inputs[1]);
    c = parseInt(inputs[2]);
    S = 2*(a*b+b*c+c*a);
    V = a*b*c;
    // console.log(inputs);
    console.log(S);
    console.log(V);
    rl.close();
});

全部评论

相关推荐

05-30 12:03
山西大学 C++
offer来了我跪着接:不是骗子,等到测评那一步就知道为啥这么高工资了
点赞 评论 收藏
分享
05-09 14:45
门头沟学院 Java
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务