Codeforces Round #623 (Div. 2) A. Dead Pixel(模拟)

题目链接:https://codeforces.com/contest/1315/problem/A

#include <bits/stdc++.h>
using namespace std;

void solve() {
    int a, b, x, y; cin >> a >> b >> x >> y;
    cout << max(a * max(b - y - 1, y), b * max(a - x - 1, x)) << "\n";
}

int main() {
    int t; cin >> t;
    while (t--) solve();
}

 

posted @ 2020-04-12 14:32  Kanoon  阅读(97)  评论(0)    收藏  举报