97分求调 WA on #11、#36、#94、#101
查看原帖
97分求调 WA on #11、#36、#94、#101
1036903
xiaoqingwa楼主2024/7/18 10:00
#include <bits/stdc++.h>

using namespace std;

long long a, b, c, d;

bool check(long long x, long long y)
{
	if (x * y >= -2147483648 && x * y <= 2147483647)
	{
		return 1;
	}
	else
	{
		return 0; 
	}
}
int main()
{
	cin >> a >> b >> c >> d;
	
	if (check(a, b) && check(a, d) && check(b, c) && check(b, d))
	{
		cout << "int" << '\n';
	}
	else
	{
		cout << "long long int" << '\n';
	}
	return 0;
}
2024/7/18 10:00
加载中...