python 45检测点死活过不了,编程的梦死在了a+b,救救孩子(猛狗哭泣)

P1001 A+B Problem

liTaizong @ 2022-03-28 01:35:11

a,b=map(int,input().split()) if(abs(a)<=1000000000): if(abs(b)<=1000000000): print(abs(a)+abs(b))


by liTaizong @ 2022-03-28 01:37:37

a,b=map(int,input().split())
if(abs(a)<=1000000000):
    if(abs(b)<=1000000000):
        print(abs(a)+abs(b))

检测点4,5死活过不了,求大佬救。


by liTaizong @ 2022-03-28 01:47:20

@liTaizong 不用大佬帮助了,我是瞎的。


by user470883 @ 2022-03-28 07:07:55

那请紫衫吧。


by tlqk1314 @ 2022-04-12 13:53:18

没见过把数据范围写进程序里的


by NightStriker @ 2022-04-15 18:48:47

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

这不香吗?


by dd100225 @ 2022-04-17 13:56:27

@tianle0206 好像真不行


by xsj523 @ 2022-04-22 20:01:58

a = input().split()
print(int(a[0])+int(a[1]))

by billhasbill @ 2022-04-23 11:16:01

int a,b;
scanf("%d %d",&a,&b);
a+=b;
printf("%d",a);

代码发给你,记得抖音搜多Minecraft_697(冲100粉)记得点赞关注


by wdl_ @ 2022-04-23 21:09:52

@liTaizong

最简短代码:

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

by Guy_AwA @ 2022-06-12 19:52:08


| 下一页