分数100,但总是101或102点没过,当我把上限改成2147483647时,WA101,改成2147483648时,WA102
请各位大佬指点
#include<bits/stdc++.h>
using namespace std;
#define int long long
const int N = 1e5 + 10;
const int INF = 0x3f3f3f3f;
signed main()
{
int a,b,x,y;
cin>>a>>b>>x>>y;
a=fabs(a);
x=fabs(x);
int maxx1=max(a,b);
int maxx2=max(x,y);
int ans=maxx1*maxx2;
if(ans<=2147483647)
{
cout<<"int";
}
else
{
cout<<"long long int";
}
return 0;
}