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(); }

浙公网安备 33010602011771号