来自一个中学生的乱七八糟的代码
#include <bits/stdc++.h>
using namespace std;
int main(){
int a,b,c,d;
long long int x,y,z,w;
cin >> a >> b >> c >> d;
x=a*c; y=a*d; z=b*c; w=b*d;
if (x>2147483647 || y>2147483647 || z>2147483647 || w>2147483647){
cout << "long long int";
return 0;
}
if (x<-2147483648 || y<-2147483648 || z<-2147483648 || w<-2147483648){
cout << "long long int";
return 0;
}
else cout << "int";
return 0;
}
** 谢谢! **