首页 > 试题广场 >

单组_A+B

[编程题]单组_A+B
  • 热度指数:35295 时间限制:C/C++ 3秒,其他语言6秒 空间限制:C/C++ 256M,其他语言512M
  • 算法知识视频讲解
给定两个整数 ab ,请你求出 a+b 的值。

输入描述:
第一行有两个整数 a\ (\ 1 \leq a \leq 10^9\ )b\ (\ 1 \leq b \leq 10^9\ )


输出描述:
输出一个整数,代表 a+b 的值。
示例1

输入

1 2

输出

3
import sys

try:
    while True:
        line = sys.stdin.readline().strip()
        if line == '':
            break
        lines = line.split()
        print(int(lines[0]) + int(lines[1]))
except:
    pass

发表于 2025-10-19 10:56:41 回复(0)