OJ-Problems-Source/QUSTOJ/1907.cpp
2016-12-07 19:02:04 +08:00

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