Untitled
unknown
plain_text
a year ago
256 B
3
Indexable
Never
#include <iostream> #include <algorithm> using namespace std; int main() { // your code goes here int t; cin>>t; while (t--) { long n, m, x, y; cin>>n>>m>>x>>y; cout << max ({(y-1)*n, (x-1)*m, (m-y)*n, (n-x)*m}) << "\n"; } return 0; }