又是我,请求添加 hack 数据

P1401 [入门赛 #18] 禁止在 int 乘 int 时不开 long long

解释:这个输入中x*y必定等于2147483648,程序只判断了乘积绝对值是否超过2147483648,没考虑int最大值是2147483647而不是2147483648.
by cff_0102 @ 2024-01-13 19:32:02


@[installb](/user/31440) 离谱验证码(幻视 hack ![](https://cdn.luogu.com.cn/upload/image_hosting/tf3nhjgn.png)
by cff_0102 @ 2024-01-13 19:34:02


@[realskc](/user/35672) @[Alex_Wei](/user/123294)
by yhx0322 @ 2024-01-13 20:44:05


已添加数据
by installb @ 2024-01-13 21:56:02


@[wlh666666](/user/867418)
by cff_0102 @ 2024-01-13 22:32:16


@[cff_0102](/user/542457) python代码如下: a=input().split() x,y=input() x1=int(a[0]) x2=int(a[1]) b=input().split() y1=int(b[0]) y2=int(b[1]) if (x1*y1<(−2147483648) or x1*y1>(2147483647) or x1*y2<(−2147483648) or x1*y2>(2147483647) or x2*y1<(−2147483648) or x2*y1>(2147483647) or x2*y2<(−2147483648) or x2*y2>(2147483647): print("long long int") else: print("int")
by 2217Lwx @ 2024-01-25 16:31:21


|