题解 | #大数乘法#

大数乘法

http://www.nowcoder.com/practice/c4c488d4d40d4c4e9824c3650f7d5571

使用java的库函数BigInteger:
public String solve (String s, String t) {
        // write code here
    BigInteger ss = new BigInteger(s);
    BigInteger tt = new BigInteger(t);
    return ss.multiply(tt).toString();
}


全部评论

相关推荐

一tiao酸菜鱼:秋招还没正式开始呢,就准备有结果了。。。。?
点赞 评论 收藏
分享
点赞 评论 收藏
分享
评论
4
收藏
分享

创作者周榜

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