100分 没有AC

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

@[LZH2011](/user/696434) 没判下界啊
by xiaoshumiao @ 2024-02-03 15:16:51


@[xiaoshumiao](/user/1008513) 什么意思?
by LZH2011 @ 2024-02-03 15:19:13


@[LZH2011](/user/696434) 不是,int 的下界是 $-2147483648$ 不是 $-2147483647$。 我怎么感觉你的 abs 做法不太对啊,要不你参考一下我的: ```cpp #include<cstdio> using namespace std; int main() { long long x1,y1,x2,y2; scanf("%lld %lld %lld %lld",&x1,&x2,&y1,&y2); if(x1*y1>2147483647|| x1*y2>2147483647|| x2*y1>2147483647|| x2*y2>2147483647|| x1*y1<-2147483648|| x1*y2<-2147483648|| x2*y1<-2147483648|| x2*y2<-2147483648) printf("long long "); printf("int"); return 0; } ```
by xiaoshumiao @ 2024-02-03 15:21:29


@[xiaoshumiao](/user/1008513) 哦哦哦,谢谢!
by LZH2011 @ 2024-02-03 15:25:55


waca~~~~~~~~~~~~~~~~~~
by Dio_The_World @ 2024-02-04 09:51:22


|