题解 | #高精度整数加法#

高精度整数加法

http://www.nowcoder.com/practice/49e772ab08994a96980f9618892e55b6

while True:
    try:
        n1 = int(input())
        n2 = int(input())
    except:
        break
    print(n1+n2)

全部评论
int表示的范围有限,字符串过长可能导致溢出
1 回复
分享
发布于 2022-12-26 14:09 广西

相关推荐

3 收藏 评论
分享
牛客网
牛客企业服务