## 为什么我会错?

P1001 A+B Problem

CATERWW @ 2021-05-08 18:08:56

s = int(input())

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


by Unordered_OIer @ 2021-05-08 18:10:29

@憨憨沈鸡毛 您学过 py 嘛。。。


by hanyuchen2019 @ 2021-05-08 18:11:11

重学PY,请


by Unordered_OIer @ 2021-05-08 18:11:15

a = int(input()), b = int(input())
print(a + b)

这不就行了嘛。。。


by CATERWW @ 2021-05-08 18:12:10

@HpyX 没有 哭泣哭泣


by hanyuchen2019 @ 2021-05-08 18:12:12

print(int(input())+int(input()))

233


by CATERWW @ 2021-05-08 18:13:45

@HpyX 我试过了,RE


by hanyuchen2019 @ 2021-05-08 18:15:54

@憨憨沈鸡毛 看错输入格式了awa


by CATERWW @ 2021-05-08 18:17:44

@hanyuchen2019 无语


by hanyuchen2019 @ 2021-05-08 18:19:07

@憨憨沈鸡毛

s = int(input()).split()

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

这就能AC了


by MilkyCoffee @ 2021-05-08 18:19:24

py应该要用 split ?


| 下一页