以前的题今天再改改,现状依旧毫无改变(92)

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

```cpp #include<bits/stdc++.h> using namespace std; int main(){ long long iax,ibx,iay,iby,INTMAX=INT_MAX,INTMIN=INT_MIN; cin>>iax>>ibx>>iay>>iby; if(ibx*iby>=INTMAX || ibx*iby<=INTMIN || iax*iay<=INTMIN || iax*iay>=INTMAX || iax*iby<=INTMIN || iax*iby>=INTMAX || ibx*iay<=INTMIN || ibx*iay>=INTMAX || iay*ibx>=INTMAX || iay*ibx<=INTMIN || iay*iby>=INTMAX || iay*iby<=INTMIN)cout<<"long long int"; else cout<<"int"; return 0; } ```
by zhenshijuruo @ 2024-09-10 20:27:34


(偷妈头哭
by zhenshijuruo @ 2024-09-10 20:28:30


@[zhenshijuruo](/user/1130499) 把所有的<=和>=的等于号去掉就行了
by _chicken_ @ 2024-09-10 20:33:27


@[_chicken_](/user/1041060) 谢谢,已AC
by zhenshijuruo @ 2024-09-10 20:39:06


@[xuchenran123](/user/749318) 这样还是92的
by zhenshijuruo @ 2024-09-10 20:40:05


此帖结
by zhenshijuruo @ 2024-09-10 20:40:39


上一页 |