AC but 样例没过
查看原帖
AC but 样例没过
1072112
fluhang_楼主2024/12/23 22:58
#include<bits/stdc++.h>
#define int long long
#define fast register int

using namespace std;

const int N=1e5+100;

int a,b,c,d;

signed main(){
	std::ios::sync_with_stdio(false);
	cin.tie(0); cout.tie(0);

	cin>>a>>b>>c>>d;
	
	if ((a*c)<-2147483648||(a*d)<-2147483648||(b*c)<-2147483648||(b*d)<-2147483648||(a*c)>2147483647||(a*d)>2147483647||(b*c)>2147483647||(b*d)>2147483647) cout<<"long long int";
	else cout<<"int";

	return 0;
}

2024/12/23 22:58
加载中...