OJ-Problems-Source/QUSTOJ/1907.cpp

17 lines
205 B
C++

#include <iostream>
using namespace std;
int main()
{
int t;
cin>>t;
while(t--)
{
int a,b,c,d;
cin>>a>>b>>c>>d;
cout<<a*b/2<<" "<<c*d<<endl;
}
return 0;
}