24个超时
查看原帖
24个超时
1073825
chenjunchao001楼主2024/9/28 18:32
#include<bits/stdc++.h>
using namespace std;
bool s(long long int x,long long int y){
    if(x*y>2147483647 or x*y<-2147483648){
        return 1;
    }
    return 0;
}
int main(){
    int a,b,z,v;
    cin>>a>>b;
    cin>>z>>v;
    for(int i=a;i<=b;i++){
        for(int j=z;j<=v;j++){
            if(s(i,j)){
                cout<<"long long int";
                return 0;
            }
        }
    }
    cout<<"int";
}
2024/9/28 18:32
加载中...