#include<iostream>
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int t ,a , b, x , y;
int main()
{
cin >> t;
while(t--)
{
cin >> a >> b >> x >> y;
int chang = max(a-x-1,x);//坏的像素点所在的较长的长
int kuan = max(b-y-1,y);//坏像素点所在的较长的宽
int s = max(chang*b,kuan*a);//取最大就是答案
cout << s << endl;
}
return 0;
}
codeforce A. Dead Pixel
最新推荐文章于 2022-03-29 08:29:54 发布