P1001 A+B Problem(python)

阅读 41

2022-01-25

https://www.luogu.com.cn/problem/P1001

http://noi.openjudge.cn/ch0103/01/

python代码方法一:

a,b=map(int,input().split())

print(a+b)

python代码方法二:

"""
P1001 A+B Problem
https://www.luogu.com.cn/problem/P1001

1.3编程基础之算术表达式与顺序执行 01 A+B问题
http://noi.openjudge.cn/ch0103/01/

"""
s = input().split()

print(int(s[0]) + int(s[1]))

精彩评论(0)

0 0 举报