A+B problem一直RE怎么办?

P1001 A+B Problem

MushR @ 2023-08-03 11:10:53

a=int(input());b=int(input());c=a+b;print(c)

https://www.luogu.com.cn/record/118748398


by real_CCF @ 2023-08-03 11:19:44

@A_Passing_Creeper 因为我要压行。


by MushR @ 2023-08-03 11:20:42

@Fuchsia ??


by real_CCF @ 2023-08-03 11:21:07

@wjiay ??


by wrkwrkwrk @ 2023-08-03 11:39:03

@wjiay Python的input一次读一行


by MushR @ 2023-08-03 11:59:39

懂了,此贴终结


by Master_Q @ 2023-08-03 14:29:07

恭喜置顶


by oliver326 @ 2023-08-06 13:20:06

@wjiay 那你也可以用print(int(input())+int(input())) 压行压得更爽(当然必须得输入两行数据)


by MushR @ 2023-08-06 22:13:06

@oliver326 我本来是这样写的,但一直不过,就改成那样了


by denominator @ 2023-08-11 10:58:46

print (sum (map (int, input ().split (' '))))

上一页 |